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 of
AbstractReactiveInformationSchemaBasedExtractorImpl
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
ConstructorsConstructorDescriptionPostgreSqlReactiveInformationExtractorImpl(ExtractionContext extractionContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected intdataTypeCode(String typeName) Return a JDBC Type code for the given type nameprotected StringGets the name of column in information_schema.columns for the database-specific column type.protected StringparameterMarker(int pos) protected <T> TprocessImportedKeysResultSet(String catalog, String schema, String table, ExtractionContext.ResultSetProcessor<T> processor) protected <T> TprocessIndexInfoResultSet(String catalog, String schema, String table, boolean unique, boolean approximate, ExtractionContext.ResultSetProcessor<T> processor) protected <T> TprocessPrimaryKeysResultSet(String catalogFilter, String schemaFilter, String tableName, ExtractionContext.ResultSetProcessor<T> processor) protected <T> TprocessPrimaryKeysResultSet(String catalogFilter, String schemaFilter, Identifier tableName, ExtractionContext.ResultSetProcessor<T> processor) Methods inherited from class org.hibernate.reactive.provider.service.AbstractReactiveInformationSchemaBasedExtractorImpl
appendClauseAndParameterIfNotNullOrEmpty, columnInformation, getDatabaseCatalogColumnName, getDatabaseSchemaColumnName, getResultSetCatalogLabel, getResultSetColumnNameLabel, getResultSetColumnPositionColumn, getResultSetColumnSizeLabel, getResultSetDecimalDigitsLabel, getResultSetForeignKeyColumnNameLabel, getResultSetForeignKeyLabel, getResultSetIndexNameLabel, getResultSetIndexTypeLabel, getResultSetIsNullableLabel, getResultSetPrimaryKeyCatalogLabel, getResultSetPrimaryKeyColumnNameLabel, getResultSetPrimaryKeyNameLabel, getResultSetPrimaryKeySchemaLabel, getResultSetPrimaryKeyTableLabel, getResultSetRemarksLabel, getResultSetSchemaLabel, getResultSetSqlTypeCodeLabel, getResultSetTableNameLabel, getResultSetTableTypeLabel, getResultSetTableTypesPhysicalTableConstant, getResultSetTypeNameLabel, processCatalogsResultSet, processColumnsResultSet, processCrossReferenceResultSet, processSchemaResultSet, processTableResultSetMethods inherited from class org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
addColumns, catalogExists, convertSQLException, extractNameSpaceForeignKeysInformation, extractNameSpaceIndexesInformation, extractNameSpacePrimaryKeysInformation, getExtractionContext, getForeignKeys, getForeignKeys, getIndexes, getIndexes, getJdbcEnvironment, getPrimaryKey, getPrimaryKeys, getResultSetForeignKeyCatalogLabel, getResultSetForeignKeySchemaLabel, getResultSetForeignKeyTableLabel, getTable, getTables, interpretTruthValue, isPhysicalTableType, schemaExists, supportsBulkForeignKeyRetrieval, supportsBulkIndexRetrieval, supportsBulkPrimaryKeyRetrieval, toMetaDataObjectName
-
Constructor Details
-
PostgreSqlReactiveInformationExtractorImpl
-
-
Method Details
-
processPrimaryKeysResultSet
protected <T> T processPrimaryKeysResultSet(String catalogFilter, String schemaFilter, Identifier tableName, ExtractionContext.ResultSetProcessor<T> processor) - Specified by:
processPrimaryKeysResultSetin classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
-
processPrimaryKeysResultSet
protected <T> T processPrimaryKeysResultSet(String catalogFilter, String schemaFilter, String tableName, ExtractionContext.ResultSetProcessor<T> processor) throws SQLException - Specified by:
processPrimaryKeysResultSetin 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:
processIndexInfoResultSetin classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl- Throws:
SQLException
-
parameterMarker
- Overrides:
parameterMarkerin classAbstractReactiveInformationSchemaBasedExtractorImpl
-
processImportedKeysResultSet
protected <T> T processImportedKeysResultSet(String catalog, String schema, String table, ExtractionContext.ResultSetProcessor<T> processor) throws SQLException - Specified by:
processImportedKeysResultSetin classorg.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl- Throws:
SQLException
-
dataTypeCode
Description copied from class:AbstractReactiveInformationSchemaBasedExtractorImplReturn a JDBC Type code for the given type name- Overrides:
dataTypeCodein classAbstractReactiveInformationSchemaBasedExtractorImpl
-
getInformationSchemaColumnsDataTypeColumn
Description copied from class:AbstractReactiveInformationSchemaBasedExtractorImplGets the name of column in information_schema.columns for the database-specific column type.- Overrides:
getInformationSchemaColumnsDataTypeColumnin classAbstractReactiveInformationSchemaBasedExtractorImpl- Returns:
- the name of column in information_schema.columns for the database-specific column type
-