Class PostgreSqlReactiveInformationExtractorImpl
- java.lang.Object
-
- org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
-
- org.hibernate.reactive.provider.service.AbstractReactiveInformationSchemaBasedExtractorImpl
-
- org.hibernate.reactive.provider.service.PostgreSqlReactiveInformationExtractorImpl
-
- All Implemented Interfaces:
InformationExtractor
public class PostgreSqlReactiveInformationExtractorImpl extends AbstractReactiveInformationSchemaBasedExtractorImpl
An implementation ofAbstractReactiveInformationSchemaBasedExtractorImpl
specifically for PostgreSQL that obtains metadata from PostgreSQL's system tables, when it is not available from PosgreSQL's information_schema.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl.ForeignKeyBuilder, org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl.ForeignKeyBuilderImpl
-
-
Constructor Summary
Constructors Constructor Description PostgreSqlReactiveInformationExtractorImpl(ExtractionContext extractionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getInformationSchemaColumnsDataTypeColumn()
Gets the name of column in information_schema.columns for the database-specific column type.protected String
getResultSetTableTypesPhysicalTableConstant()
protected <T> T
processImportedKeysResultSet(String catalog, String schema, String table, ExtractionContext.ResultSetProcessor<T> processor)
protected <T> T
processIndexInfoResultSet(String catalog, String schema, String table, boolean unique, boolean approximate, ExtractionContext.ResultSetProcessor<T> processor)
protected <T> T
processPrimaryKeysResultSet(String catalogFilter, String schemaFilter, Identifier tableName, ExtractionContext.ResultSetProcessor<T> processor)
-
Methods inherited from class org.hibernate.reactive.provider.service.AbstractReactiveInformationSchemaBasedExtractorImpl
addExtractedColumnInformation, appendClauseAndParameterIfNotNullOrEmpty, dataTypeCode, getDatabaseCatalogColumnName, getDatabaseSchemaColumnName, getResultSetCatalogLabel, getResultSetColumnNameLabel, getResultSetColumnPositionColumn, getResultSetColumnSizeLabel, getResultSetDecimalDigitsLabel, getResultSetForeignKeyColumnNameLabel, getResultSetForeignKeyLabel, getResultSetIndexNameLabel, getResultSetIndexTypeLabel, getResultSetIsNullableLabel, getResultSetPrimaryKeyCatalogLabel, getResultSetPrimaryKeyColumnNameLabel, getResultSetPrimaryKeyNameLabel, getResultSetPrimaryKeySchemaLabel, getResultSetPrimaryKeyTableLabel, getResultSetRemarksLabel, getResultSetSchemaLabel, getResultSetSqlTypeCodeLabel, getResultSetTableNameLabel, getResultSetTableTypeLabel, getResultSetTypeNameLabel, processCatalogsResultSet, processColumnsResultSet, processSchemaResultSet, processTableResultSet
-
Methods inherited from class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
addColumns, catalogExists, convertSQLException, determineCatalogFilter, determineSchemaFilter, getExtractionContext, getForeignKeys, getIndexes, getPrimaryKey, getTable, getTables, identifierHelper, interpretNullable, isPhysicalTableType, schemaExists, toMetaDataObjectName
-
-
-
-
Constructor Detail
-
PostgreSqlReactiveInformationExtractorImpl
public PostgreSqlReactiveInformationExtractorImpl(ExtractionContext extractionContext)
-
-
Method Detail
-
getResultSetTableTypesPhysicalTableConstant
protected String getResultSetTableTypesPhysicalTableConstant()
-
processPrimaryKeysResultSet
protected <T> T processPrimaryKeysResultSet(String catalogFilter, String schemaFilter, Identifier tableName, ExtractionContext.ResultSetProcessor<T> processor) throws SQLException
- Specified by:
processPrimaryKeysResultSet
in classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
- Throws:
SQLException
-
processIndexInfoResultSet
protected <T> T processIndexInfoResultSet(String catalog, String schema, String table, boolean unique, boolean approximate, ExtractionContext.ResultSetProcessor<T> processor) throws SQLException
- Specified by:
processIndexInfoResultSet
in classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
- Throws:
SQLException
-
processImportedKeysResultSet
protected <T> T processImportedKeysResultSet(String catalog, String schema, String table, ExtractionContext.ResultSetProcessor<T> processor) throws SQLException
- Specified by:
processImportedKeysResultSet
in classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
- Throws:
SQLException
-
getInformationSchemaColumnsDataTypeColumn
protected String getInformationSchemaColumnsDataTypeColumn()
Description copied from class:AbstractReactiveInformationSchemaBasedExtractorImpl
Gets the name of column in information_schema.columns for the database-specific column type.- Overrides:
getInformationSchemaColumnsDataTypeColumn
in classAbstractReactiveInformationSchemaBasedExtractorImpl
- Returns:
- the name of column in information_schema.columns for the database-specific column type
-
-