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:
org.hibernate.tool.schema.extract.spi.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(org.hibernate.tool.schema.extract.spi.ExtractionContext extractionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
dataTypeCode(java.lang.String typeName)
Return a JDBC Type code for the given type nameprotected java.lang.String
getInformationSchemaColumnsDataTypeColumn()
Gets the name of column in information_schema.columns for the database-specific column type.protected java.lang.String
getResultSetTableTypesPhysicalTableConstant()
protected <T> T
processImportedKeysResultSet(java.lang.String catalog, java.lang.String schema, java.lang.String table, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor)
protected <T> T
processIndexInfoResultSet(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor)
protected <T> T
processPrimaryKeysResultSet(java.lang.String catalogFilter, java.lang.String schemaFilter, org.hibernate.boot.model.naming.Identifier tableName, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor)
-
Methods inherited from class org.hibernate.reactive.provider.service.AbstractReactiveInformationSchemaBasedExtractorImpl
addExtractedColumnInformation, appendClauseAndParameterIfNotNullOrEmpty, 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
-
-
-
-
Method Detail
-
getResultSetTableTypesPhysicalTableConstant
protected java.lang.String getResultSetTableTypesPhysicalTableConstant()
-
processPrimaryKeysResultSet
protected <T> T processPrimaryKeysResultSet(java.lang.String catalogFilter, java.lang.String schemaFilter, org.hibernate.boot.model.naming.Identifier tableName, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) throws java.sql.SQLException
- Specified by:
processPrimaryKeysResultSet
in classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
- Throws:
java.sql.SQLException
-
processIndexInfoResultSet
protected <T> T processIndexInfoResultSet(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) throws java.sql.SQLException
- Specified by:
processIndexInfoResultSet
in classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
- Throws:
java.sql.SQLException
-
processImportedKeysResultSet
protected <T> T processImportedKeysResultSet(java.lang.String catalog, java.lang.String schema, java.lang.String table, org.hibernate.tool.schema.extract.spi.ExtractionContext.ResultSetProcessor<T> processor) throws java.sql.SQLException
- Specified by:
processImportedKeysResultSet
in classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
- Throws:
java.sql.SQLException
-
dataTypeCode
protected int dataTypeCode(java.lang.String typeName)
Description copied from class:AbstractReactiveInformationSchemaBasedExtractorImpl
Return a JDBC Type code for the given type name- Overrides:
dataTypeCode
in classAbstractReactiveInformationSchemaBasedExtractorImpl
-
getInformationSchemaColumnsDataTypeColumn
protected java.lang.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
-
-