private void synchronize(){
  s_logger.log(Level.INFO,"");
  s_logger.log(Level.INFO,"migrateSynchronize");
  if (isUpgrade()) {
    dropDBObjects(DBObject_Check.class);
    dropDBObjects(DBObject_Unique.class);
    dropDBObjects(DBObject_ForeignKey.class);
    dropDBObjects(DBObject_View.class);
    dropDBObjects(DBObject_Operator.class);
    dropDBObjects(DBObject_Trigger.class);
    dropDBObjects(DBObject_Function.class);
    truncateTemporaryTables();
    ArrayList<String> truncatedTables=new ArrayList<String>();
    for (Iterator<String> it=m_trackingList.iterator(); it.hasNext(); ) {
      truncatedTables.add(it.next());
    }
    dropSystemClients();
    createTemporaryTargetIndexes();
    purgeSystemRecords(truncatedTables);
    dropDBObjects(DBObject_PrimaryKey.class);
    dropDBObjects(DBObject_Index.class);
    dropTemporaryIndexes();
  }
  synchronizeDBSequencesFromSource();
  synchronizeTables();
  synchronizeDBSequencesDropUnused();
  if (isCopy())   convertTriggersToFunctions();
  recreateDBObjects(DBObject_Function.class,true);
  recreateDBObjects(DBObject_Trigger.class,false);
  recreateDBObjects(DBObject_Operator.class,false);
  recreateDBObjects(DBObject_View.class,true);
  if (isUpgrade()) {
    createTemporaryPrimaryKeys();
    synchronizePrimaryKeys();
  }
  synchronizeData();
  if (isUpgrade())   dropTemporaryIndexes();
  recreateDBObjects(DBObject_Index.class,false);
  recreateDBObjects(DBObject_PrimaryKey.class,false);
  if (isUpgrade()) {
    populateNewParents();
    createTemporaryIndexes();
    preserveParentLinks();
    purgeOrphans();
    dropTemporaryIndexes();
    enforceCheckConstraints();
    cleanupCustomizations();
    cleanupADSequences();
    cleanupTranslations();
    cleanupTerminology();
    cleanupTreeNodes();
    cleanupSecurity();
    bumpVersionInfo();
  }
  recreateDBObjects(DBObject_ForeignKey.class,false);
  recreateDBObjects(DBObject_Check.class,false);
  recreateDBObjects(DBObject_Unique.class,false);
  m_target.setDoNotInterrupt(false);
}

private void synchronize ( ) { s_logger . log ( Level . INFO , "" ) ; s_logger . log ( Level . INFO , "migrateSynchronize" ) ; if ( isUpgrade ( ) ) { dropDBObjects ( DBObject_Check . class ) ; dropDBObjects ( DBObject_Unique . class ) ; dropDBObjects ( DBObject_ForeignKey . class ) ; dropDBObjects ( DBObject_View . class ) ; dropDBObjects ( DBObject_Operator . class ) ; dropDBObjects ( DBObject_Trigger . class ) ; dropDBObjects ( DBObject_Function . class ) ; truncateTemporaryTables ( ) ; ArrayList < String > truncatedTables = new ArrayList < String > ( ) ; for ( Iterator < String > it = m_trackingList . iterator ( ) ; it . hasNext ( ) ; ) { truncatedTables . add ( it . next ( ) ) ; } dropSystemClients ( ) ; createTemporaryTargetIndexes ( ) ; purgeSystemRecords ( truncatedTables ) ; dropDBObjects ( DBObject_PrimaryKey . class ) ; dropDBObjects ( DBObject_Index . class ) ; dropTemporaryIndexes ( ) ; } synchronizeDBSequencesFromSource ( ) ; synchronizeTables ( ) ; synchronizeDBSequencesDropUnused ( ) ; if ( isCopy ( ) ) convertTriggersToFunctions ( ) ; recreateDBObjects ( DBObject_Function . class , true ) ; recreateDBObjects ( DBObject_Trigger . class , false ) ; recreateDBObjects ( DBObject_Operator . class , false ) ; recreateDBObjects ( DBObject_View . class , true ) ; if ( isUpgrade ( ) ) { createTemporaryPrimaryKeys ( ) ; synchronizePrimaryKeys ( ) ; } synchronizeData ( ) ; if ( isUpgrade ( ) ) dropTemporaryIndexes ( ) ; recreateDBObjects ( DBObject_Index . class , false ) ; recreateDBObjects ( DBObject_PrimaryKey . class , false ) ; if ( isUpgrade ( ) ) { populateNewParents ( ) ; createTemporaryIndexes ( ) ; preserveParentLinks ( ) ; purgeOrphans ( ) ; dropTemporaryIndexes ( ) ; enforceCheckConstraints ( ) ; cleanupCustomizations ( ) ; cleanupADSequences ( ) ; cleanupTranslations ( ) ; cleanupTerminology ( ) ; cleanupTreeNodes ( ) ; cleanupSecurity ( ) ; bumpVersionInfo ( ) ; } recreateDBObjects ( DBObject_ForeignKey . class , false ) ; recreateDBObjects ( DBObject_Check . class , false ) ; recreateDBObjects ( DBObject_Unique . class , false ) ; m_target . setDoNotInterrupt ( false ) ; }
synchronize target from source
