public void mergeSourceRecord ( Record recSource , Record recDest ) { try { boolean bFound = this . readDestRecord ( recSource , recDest ) ; if ( ! bFound ) recDest . addNew ( ) ; else recDest . edit ( ) ; this . mergeSourceData ( recSource , recDest , bFound ) ; if ( recDest . isModified ( ) ) { if ( recDest . getEditMode ( ) == DBConstants . EDIT_ADD ) { boolean bAutoSequence = true ; if ( ! recDest . getCounterField ( ) . isNull ( ) ) bAutoSequence = false ; recDest . setAutoSequence ( bAutoSequence ) ; recDest . add ( ) ; recDest . setAutoSequence ( true ) ; } else if ( recDest . getEditMode ( ) == DBConstants . EDIT_IN_PROGRESS ) recDest . set ( ) ; } } catch ( DBException e ) { e . printStackTrace ( ) ; } }
MergeSourceRecord Method .