private boolean isSourceAndTargetDifferent(){
  boolean result=false;
  String sourceVendor="";
  String targetVendor="";
  String sourceUrl="";
  String targetUrl="";
  String sourceCatalog="";
  String targetCatalog="";
  String sourceSchema="";
  String targetSchema="";
  if (m_source.getVendor() != null)   sourceVendor=m_source.getVendor();
  if (m_target.getVendor() != null)   targetVendor=m_target.getVendor();
  if (m_source.getUrl() != null)   sourceUrl=m_source.getUrl();
  if (m_target.getUrl() != null)   targetUrl=m_target.getUrl();
  if (m_source.getCatalog() != null)   sourceCatalog=m_source.getCatalog();
  if (m_target.getCatalog() != null)   targetCatalog=m_target.getCatalog();
  if (m_source.getSchema() != null)   sourceSchema=m_source.getSchema();
  if (m_target.getSchema() != null)   targetSchema=m_target.getSchema();
  if (!sourceVendor.equalsIgnoreCase(targetVendor))   result=true;
 else   if (!sourceUrl.equalsIgnoreCase(targetUrl))   result=true;
 else   if (!sourceCatalog.equalsIgnoreCase(targetCatalog))   result=true;
 else   if (!sourceSchema.equalsIgnoreCase(targetSchema))   result=true;
  if (!result)   s_logger.log(Level.SEVERE,"sourceTargetSame");
  return result;
}

private boolean isSourceAndTargetDifferent ( ) { boolean result = false ; String sourceVendor = "" ; String targetVendor = "" ; String sourceUrl = "" ; String targetUrl = "" ; String sourceCatalog = "" ; String targetCatalog = "" ; String sourceSchema = "" ; String targetSchema = "" ; if ( m_source . getVendor ( ) != null ) sourceVendor = m_source . getVendor ( ) ; if ( m_target . getVendor ( ) != null ) targetVendor = m_target . getVendor ( ) ; if ( m_source . getUrl ( ) != null ) sourceUrl = m_source . getUrl ( ) ; if ( m_target . getUrl ( ) != null ) targetUrl = m_target . getUrl ( ) ; if ( m_source . getCatalog ( ) != null ) sourceCatalog = m_source . getCatalog ( ) ; if ( m_target . getCatalog ( ) != null ) targetCatalog = m_target . getCatalog ( ) ; if ( m_source . getSchema ( ) != null ) sourceSchema = m_source . getSchema ( ) ; if ( m_target . getSchema ( ) != null ) targetSchema = m_target . getSchema ( ) ; if ( ! sourceVendor . equalsIgnoreCase ( targetVendor ) ) result = true ; else if ( ! sourceUrl . equalsIgnoreCase ( targetUrl ) ) result = true ; else if ( ! sourceCatalog . equalsIgnoreCase ( targetCatalog ) ) result = true ; else if ( ! sourceSchema . equalsIgnoreCase ( targetSchema ) ) result = true ; if ( ! result ) s_logger . log ( Level . SEVERE , "sourceTargetSame" ) ; return result ; }
checks whether source and target are diferent databases ( a database can not be migrated to itself )
