类 CatalogUtils
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.utils.CatalogUtils
-
public class CatalogUtils extends Object
-
-
构造器概要
构造器 构造器 说明 CatalogUtils()
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static org.apache.seatunnel.api.table.catalog.CatalogTablegetCatalogTable(Connection connection, String sqlQuery)已过时。static org.apache.seatunnel.api.table.catalog.CatalogTablegetCatalogTable(Connection connection, String sqlQuery, JdbcDialectTypeMapper typeMapper)static org.apache.seatunnel.api.table.catalog.CatalogTablegetCatalogTable(Connection connection, org.apache.seatunnel.api.table.catalog.TablePath tablePath, JdbcDialectTypeMapper typeMapper)static org.apache.seatunnel.api.table.catalog.CatalogTablegetCatalogTable(ResultSetMetaData resultSetMetaData, String sqlQuery)static org.apache.seatunnel.api.table.catalog.CatalogTablegetCatalogTable(ResultSetMetaData metadata, java.util.function.BiFunction<ResultSetMetaData,Integer,org.apache.seatunnel.api.table.catalog.Column> columnConverter, String sqlQuery)static org.apache.seatunnel.api.table.catalog.CatalogTablegetCatalogTable(ResultSetMetaData metadata, JdbcDialectTypeMapper typeMapper, String sqlQuery)static List<org.apache.seatunnel.api.table.catalog.ConstraintKey>getConstraintKeys(DatabaseMetaData metadata, org.apache.seatunnel.api.table.catalog.TablePath tablePath)static StringgetFieldIde(String identifier, String fieldIde)static Optional<org.apache.seatunnel.api.table.catalog.PrimaryKey>getPrimaryKey(DatabaseMetaData metaData, org.apache.seatunnel.api.table.catalog.TablePath tablePath)static org.apache.seatunnel.api.table.catalog.TableSchemagetTableSchema(DatabaseMetaData metadata, org.apache.seatunnel.api.table.catalog.TablePath tablePath, JdbcDialectTypeMapper typeMapper)static StringquoteIdentifier(String identifier, String fieldIde)static StringquoteIdentifier(String identifier, String fieldIde, String quote)static StringquoteTableIdentifier(String identifier, String fieldIde)
-
-
-
方法详细资料
-
quoteIdentifier
public static String quoteIdentifier(String identifier, String fieldIde, String quote)
-
getPrimaryKey
public static Optional<org.apache.seatunnel.api.table.catalog.PrimaryKey> getPrimaryKey(DatabaseMetaData metaData, org.apache.seatunnel.api.table.catalog.TablePath tablePath) throws SQLException
- 抛出:
SQLException
-
getConstraintKeys
public static List<org.apache.seatunnel.api.table.catalog.ConstraintKey> getConstraintKeys(DatabaseMetaData metadata, org.apache.seatunnel.api.table.catalog.TablePath tablePath) throws SQLException
- 抛出:
SQLException
-
getTableSchema
public static org.apache.seatunnel.api.table.catalog.TableSchema getTableSchema(DatabaseMetaData metadata, org.apache.seatunnel.api.table.catalog.TablePath tablePath, JdbcDialectTypeMapper typeMapper) throws SQLException
- 抛出:
SQLException
-
getCatalogTable
public static org.apache.seatunnel.api.table.catalog.CatalogTable getCatalogTable(Connection connection, org.apache.seatunnel.api.table.catalog.TablePath tablePath, JdbcDialectTypeMapper typeMapper) throws SQLException
- 抛出:
SQLException
-
getCatalogTable
public static org.apache.seatunnel.api.table.catalog.CatalogTable getCatalogTable(ResultSetMetaData resultSetMetaData, String sqlQuery) throws SQLException
- 抛出:
SQLException
-
getCatalogTable
public static org.apache.seatunnel.api.table.catalog.CatalogTable getCatalogTable(ResultSetMetaData metadata, JdbcDialectTypeMapper typeMapper, String sqlQuery) throws SQLException
- 抛出:
SQLException
-
getCatalogTable
public static org.apache.seatunnel.api.table.catalog.CatalogTable getCatalogTable(ResultSetMetaData metadata, java.util.function.BiFunction<ResultSetMetaData,Integer,org.apache.seatunnel.api.table.catalog.Column> columnConverter, String sqlQuery) throws SQLException
- 抛出:
SQLException
-
getCatalogTable
public static org.apache.seatunnel.api.table.catalog.CatalogTable getCatalogTable(Connection connection, String sqlQuery, JdbcDialectTypeMapper typeMapper) throws SQLException
- 抛出:
SQLException
-
getCatalogTable
@Deprecated public static org.apache.seatunnel.api.table.catalog.CatalogTable getCatalogTable(Connection connection, String sqlQuery) throws SQLException
已过时。- 参数:
connection-sqlQuery-- 返回:
- 抛出:
SQLException
-
-