public boolean tableExistsCaseSensitive(DatabaseMetaData dbMetaData,String tableName) throws SQLException {
  ResultSet rsTables=dbMetaData.getTables(null,null,tableName,null);
  try {
    return rsTables.next();
  }
  finally {
    closeJDBCResultSet(rsTables);
  }
}

public boolean tableExistsCaseSensitive ( DatabaseMetaData dbMetaData , String tableName ) throws SQLException { ResultSet rsTables = dbMetaData . getTables ( null , null , tableName , null ) ; try { return rsTables . next ( ) ; } finally { closeJDBCResultSet ( rsTables ) ; } }
checks database metadata to see if a table exists . this method is sensitive to the case of the provided table name .
