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

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