public void logAddRecord ( Rec record , int iSystemID ) { try { this . getTable ( ) . setProperty ( DBParams . SUPRESSREMOTEDBMESSAGES , DBConstants . TRUE ) ; this . getTable ( ) . getDatabase ( ) . setProperty ( DBParams . MESSAGES_TO_REMOTE , DBConstants . FALSE ) ; this . addNew ( ) ; this . getField ( AnalysisLog . SYSTEM_ID ) . setValue ( iSystemID ) ; this . getField ( AnalysisLog . OBJECT_ID ) . setValue ( Debug . getObjectID ( record , false ) ) ; this . getField ( AnalysisLog . CLASS_NAME ) . setString ( Debug . getClassName ( record ) ) ; this . getField ( AnalysisLog . DATABASE_NAME ) . setString ( record . getDatabaseName ( ) ) ; ( ( DateTimeField ) this . getField ( AnalysisLog . INIT_TIME ) ) . setValue ( DateTimeField . currentTime ( ) ) ; this . getField ( AnalysisLog . RECORD_OWNER ) . setString ( Debug . getClassName ( ( ( Record ) record ) . getRecordOwner ( ) ) ) ; this . getField ( AnalysisLog . STACK_TRACE ) . setString ( Debug . getStackTrace ( ) ) ; this . add ( ) ; } catch ( DBException ex ) { ex . printStackTrace ( ) ; } }
Log that this record has been added . Call this from the end of record . init