private boolean isRecordExists(String tableName,String columnName,String checkCondition){
  String vendor=m_target.getVendor();
  String catalog=m_target.getCatalog();
  String schema=m_target.getSchema();
  boolean isRecordsFound=false;
  Statement stmt=m_target.setStatement();
  String sqlCommand=s_dbEngine.sqlAction_checkRecordExists(vendor,catalog,schema,tableName,columnName,checkCondition);
  ResultSet rs=m_target.executeQuery(stmt,sqlCommand);
  if (m_target.getResultSetNext(rs)) {
    int numberOfRecords=m_target.getResultSetInt(rs,"NumberOfRecords");
    if (numberOfRecords > 0)     isRecordsFound=true;
  }
  m_target.releaseResultSet(rs);
  m_target.releaseStatement(stmt);
  return isRecordsFound;
}

private boolean isRecordExists ( String tableName , String columnName , String checkCondition ) { String vendor = m_target . getVendor ( ) ; String catalog = m_target . getCatalog ( ) ; String schema = m_target . getSchema ( ) ; boolean isRecordsFound = false ; Statement stmt = m_target . setStatement ( ) ; String sqlCommand = s_dbEngine . sqlAction_checkRecordExists ( vendor , catalog , schema , tableName , columnName , checkCondition ) ; ResultSet rs = m_target . executeQuery ( stmt , sqlCommand ) ; if ( m_target . getResultSetNext ( rs ) ) { int numberOfRecords = m_target . getResultSetInt ( rs , "NumberOfRecords" ) ; if ( numberOfRecords > 0 ) isRecordsFound = true ; } m_target . releaseResultSet ( rs ) ; m_target . releaseStatement ( stmt ) ; return isRecordsFound ; }
check whether at least one record fulfilling the condition exists
