jdbc-protolib/src/main/java/com/streamsets/pipeline/lib/jdbc/JdbcUtil.java
public ResultSet getColumnMetadata(Connection connection, String schema, String tableName) throws SQLException {
    DatabaseMetaData metadata = connection.getMetaData();
    // Get all columns for this table
    return metadata.getColumns(getCatalog(connection, schema), schema, tableName, null);
  }
public ResultSet getColumnMetadata(Connection connection, String schema, String tableName) throws SQLException {
    DatabaseMetaData metadata = connection.getMetaData();
    // Get all columns for this table
    return metadata.getColumns(getCatalog(connection, schema), schema, tableName, null);
  }
public ResultSet getColumnMetadata ( Connection connection , String schema , String tableName ) throws SQLException { DatabaseMetaData metadata = connection . getMetaData ( ) ; // Get all columns for this table return metadata . getColumns ( getCatalog ( connection , schema ) , schema , tableName , null ) ; }
Wrapper for {@link java.sql.DatabaseMetaData#getColumns(String, String, String, String)} that detects
the format of the supplied tableName.

@param connection An open JDBC connection
@param tableName table name that is optionally fully qualified with a schema in the form schema.tableName
@return ResultSet containing the column metadata

@throws SQLException
Wrapper for { @link java . sql . DatabaseMetaData#getColumns ( String String String String ) } that detects the format of the supplied tableName .