jdbc-protolib/src/main/java/com/streamsets/pipeline/lib/jdbc/JdbcUtil.java
public ResultSet getTableAndViewMetadata(
      Connection connection,
      String schema,
      String tableName
  ) throws SQLException {
    return connection.getMetaData().getTables(
        getCatalog(connection, schema),
        schema,
        tableName,
        METADATA_TABLE_VIEW_TYPE
    );
  }
public ResultSet getTableAndViewMetadata(
      Connection connection,
      String schema,
      String tableName
  ) throws SQLException {
    return connection.getMetaData().getTables(
        getCatalog(connection, schema),
        schema,
        tableName,
        METADATA_TABLE_VIEW_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 and view metadata

@throws SQLException