jdbc-protolib/src/main/java/com/streamsets/pipeline/lib/jdbc/JdbcUtil.java
public ResultSet getTableMetadata(Connection connection, String schema, String tableName) throws SQLException {
    DatabaseMetaData metadata = connection.getMetaData();
    return metadata.getTables(getCatalog(connection, schema), schema, tableName, METADATA_TABLE_TYPE);
  }
public ResultSet getTableMetadata(Connection connection, String schema, String tableName) throws SQLException {
    DatabaseMetaData metadata = connection.getMetaData();
    return metadata.getTables(getCatalog(connection, schema), schema, tableName, METADATA_TABLE_TYPE);
  }
public ResultSet getTableMetadata ( Connection connection , String schema , String tableName ) throws SQLException { DatabaseMetaData metadata = connection . getMetaData ( ) ; return metadata . getTables ( getCatalog ( connection , schema ) , schema , tableName , METADATA_TABLE_TYPE ) ; }
Wrapper for {@link java.sql.DatabaseMetaData#getTables(String, String, String, String[])}

@param connection open JDBC connection
@param schema schema name, can be null
@param tableName table name or pattern, optionally fully qualified in the form schema.tableName
@return ResultSet containing the table metadata

@throws SQLException
Wrapper for { @link java . sql . DatabaseMetaData#getTables ( String String String String [] ) }