public abstract class AbstractReactiveInformationSchemaBasedExtractorImpl
extends org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
InformationExtractor that obtains metadata
information from a database's information_schema.org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl.ForeignKeyBuilder, org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl.ForeignKeyBuilderImpl| Constructor and Description |
|---|
AbstractReactiveInformationSchemaBasedExtractorImpl(org.hibernate.tool.schema.extract.spi.ExtractionContext extractionContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtractedColumnInformation(org.hibernate.tool.schema.extract.spi.TableInformation tableInformation,
ResultSet resultSet) |
protected boolean |
appendClauseAndParameterIfNotNullOrEmpty(String clause,
Object parameter,
StringBuilder sb,
List<Object> parameters) |
protected int |
dataTypeCode(String typeName)
Return a JDBC Type code for the given type name
|
protected String |
getDatabaseCatalogColumnName(String catalogColumnName,
String schemaColumnName)
Given a catalog column name and a schema column name in an
information_schema table/view, this method returns the column
used for storing the catalog name, or
, if there
is no valid column containing the catalog name. |
protected String |
getDatabaseSchemaColumnName(String catalogColumnName,
String schemaColumnName)
Given a catalog column name and a schema column name in an
information_schema table/view, this method returns the column
used for storing the schema name, or
, if there
is no valid column containing the schema name. |
protected String |
getInformationSchemaColumnsDataTypeColumn()
Gets the name of column in information_schema.columns for the
database-specific column type.
|
protected String |
getResultSetCatalogLabel() |
protected String |
getResultSetColumnNameLabel() |
protected String |
getResultSetColumnPositionColumn() |
protected String |
getResultSetColumnSizeLabel() |
protected String |
getResultSetDecimalDigitsLabel() |
protected String |
getResultSetForeignKeyColumnNameLabel() |
protected String |
getResultSetForeignKeyLabel() |
protected String |
getResultSetIndexNameLabel() |
protected String |
getResultSetIndexTypeLabel() |
protected String |
getResultSetIsNullableLabel() |
protected String |
getResultSetPrimaryKeyCatalogLabel() |
protected String |
getResultSetPrimaryKeyColumnNameLabel() |
protected String |
getResultSetPrimaryKeyNameLabel() |
protected String |
getResultSetPrimaryKeySchemaLabel() |
protected String |
getResultSetPrimaryKeyTableLabel() |
protected String |
getResultSetRemarksLabel() |
protected String |
getResultSetSchemaLabel() |
protected String |
getResultSetSqlTypeCodeLabel() |
protected String |
getResultSetTableNameLabel() |
protected String |
getResultSetTableTypeLabel() |
protected String |
getResultSetTableTypesPhysicalTableConstant() |
protected String |
getResultSetTypeNameLabel() |
protected <T> T |
processCatalogsResultSet(org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) |
protected <T> T |
processColumnsResultSet(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern,
org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) |
protected <T> T |
processSchemaResultSet(String catalog,
String schemaPattern,
org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) |
protected <T> T |
processTableResultSet(String catalog,
String schemaPattern,
String tableNamePattern,
String[] types,
org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) |
addColumns, catalogExists, convertSQLException, determineCatalogFilter, determineSchemaFilter, getExtractionContext, getForeignKeys, getIndexes, getPrimaryKey, getTable, getTables, identifierHelper, interpretNullable, isPhysicalTableType, processImportedKeysResultSet, processIndexInfoResultSet, processPrimaryKeysResultSet, schemaExists, toMetaDataObjectNamepublic AbstractReactiveInformationSchemaBasedExtractorImpl(org.hibernate.tool.schema.extract.spi.ExtractionContext extractionContext)
protected String getResultSetCatalogLabel()
getResultSetCatalogLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetSchemaLabel()
getResultSetSchemaLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetTableNameLabel()
getResultSetTableNameLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetTableTypeLabel()
getResultSetTableTypeLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetRemarksLabel()
getResultSetRemarksLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetColumnNameLabel()
getResultSetColumnNameLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetSqlTypeCodeLabel()
getResultSetSqlTypeCodeLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetTypeNameLabel()
getResultSetTypeNameLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetColumnSizeLabel()
getResultSetColumnSizeLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetDecimalDigitsLabel()
getResultSetDecimalDigitsLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetIsNullableLabel()
getResultSetIsNullableLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetIndexTypeLabel()
getResultSetIndexTypeLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetIndexNameLabel()
getResultSetIndexNameLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetForeignKeyLabel()
getResultSetForeignKeyLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetPrimaryKeyNameLabel()
getResultSetPrimaryKeyNameLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetColumnPositionColumn()
getResultSetColumnPositionColumn in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetPrimaryKeyColumnNameLabel()
getResultSetPrimaryKeyColumnNameLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetForeignKeyColumnNameLabel()
getResultSetForeignKeyColumnNameLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetPrimaryKeyCatalogLabel()
getResultSetPrimaryKeyCatalogLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetPrimaryKeySchemaLabel()
getResultSetPrimaryKeySchemaLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetPrimaryKeyTableLabel()
getResultSetPrimaryKeyTableLabel in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected String getResultSetTableTypesPhysicalTableConstant()
getResultSetTableTypesPhysicalTableConstant in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplprotected <T> T processCatalogsResultSet(org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor)
throws SQLException
processCatalogsResultSet in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplSQLExceptionprotected <T> T processSchemaResultSet(String catalog, String schemaPattern, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) throws SQLException
processSchemaResultSet in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplSQLExceptionprotected boolean appendClauseAndParameterIfNotNullOrEmpty(String clause, Object parameter, StringBuilder sb, List<Object> parameters)
protected <T> T processTableResultSet(String catalog, String schemaPattern, String tableNamePattern, String[] types, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) throws SQLException
processTableResultSet in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplSQLExceptionprotected <T> T processColumnsResultSet(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) throws SQLException
processColumnsResultSet in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplSQLExceptionprotected String getInformationSchemaColumnsDataTypeColumn()
protected String getDatabaseCatalogColumnName(String catalogColumnName, String schemaColumnName)
, if there
is no valid column containing the catalog name.
MySQL, for example, uses the schema name column
in the information_schema to store the catalog name.
(@see MySqlReactiveInformationExtractorImpl)catalogColumnName - - the catalog column nameschemaColumnName - - the schema column name if there is no valid column containing
the catalog name.protected String getDatabaseSchemaColumnName(String catalogColumnName, String schemaColumnName)
, if there
is no valid column containing the schema name.
MySQL, for example, does not have a valid column in
in the information_schema to store the schema name.
(@see MySqlReactiveInformationExtractorImpl)catalogColumnName - - the catalog column nameschemaColumnName - - the schema column name if there is no valid column containing
the schema name.protected void addExtractedColumnInformation(org.hibernate.tool.schema.extract.spi.TableInformation tableInformation,
ResultSet resultSet)
throws SQLException
addExtractedColumnInformation in class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImplSQLExceptionprotected int dataTypeCode(String typeName)
Copyright © 2020-2022 Red Hat, Inc. All Rights Reserved.