public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption)
    {
        if ((iChangeType == DBConstants.AFTER_ADD_TYPE)
            || (iChangeType == DBConstants.AFTER_UPDATE_TYPE)
            || (iChangeType == DBConstants.AFTER_DELETE_TYPE))
        {
            if ((iChangeType == DBConstants.AFTER_DELETE_TYPE)
                || (this.getOwner().getField(ProjectTask.START_DATE_TIME).isModified())
                || (this.getOwner().getField(ProjectTask.END_DATE_TIME).isModified()))
            {
                if (iChangeType == DBConstants.AFTER_UPDATE_TYPE)
                    ((ProjectTask)this.getOwner()).updateDependencies(m_bMoveSiblings, bDisplayOption);
            }
        }
        return super.doRecordChange(field, iChangeType, bDisplayOption);
    }
public int doRecordChange ( FieldInfo field , int iChangeType , boolean bDisplayOption ) { if ( ( iChangeType == DBConstants . AFTER_ADD_TYPE ) || ( iChangeType == DBConstants . AFTER_UPDATE_TYPE ) || ( iChangeType == DBConstants . AFTER_DELETE_TYPE ) ) { if ( ( iChangeType == DBConstants . AFTER_DELETE_TYPE ) || ( this . getOwner ( ) . getField ( ProjectTask . START_DATE_TIME ) . isModified ( ) ) || ( this . getOwner ( ) . getField ( ProjectTask . END_DATE_TIME ) . isModified ( ) ) ) { if ( iChangeType == DBConstants . AFTER_UPDATE_TYPE ) ( ( ProjectTask ) this . getOwner ( ) ) . updateDependencies ( m_bMoveSiblings , bDisplayOption ) ; } } return super . doRecordChange ( field , iChangeType , bDisplayOption ) ; }
Called when a change is the record status is about to happen/has happened.
@param field If this file change is due to a field, this is the field.
@param iChangeType The type of change that occurred.
@param bDisplayOption If true, display any changes.
@return an error code.
ADD_TYPE - Before a write.
UPDATE_TYPE - Before an update.
DELETE_TYPE - Before a delete.
AFTER_UPDATE_TYPE - After a write or update.
LOCK_TYPE - Before a lock.
SELECT_TYPE - After a select.
DESELECT_TYPE - After a deselect.
MOVE_NEXT_TYPE - After a move.
AFTER_REQUERY_TYPE - Record opened.
SELECT_EOF_TYPE - EOF Hit.