public void logRemoveRecord ( 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 , true ) ) ; this . setKeyArea ( AnalysisLog . OBJECT_ID_KEY ) ; if ( this . seek ( null ) ) { this . edit ( ) ; ( ( DateTimeField ) this . getField ( AnalysisLog . FREE_TIME ) ) . setValue ( DateTimeField . currentTime ( ) ) ; if ( this . getField ( AnalysisLog . RECORD_OWNER ) . isNull ( ) ) this . getField ( AnalysisLog . RECORD_OWNER ) . setString ( Debug . getClassName ( ( ( Record ) record ) . getRecordOwner ( ) ) ) ; this . set ( ) ; } else { // Ignore for now System.exit(1); } } catch ( DBException ex ) { ex . printStackTrace ( ) ; } }
Log that this record has been freed . Call this from the end of record . free