Class SqlServerReactiveInformationExtractorImpl
- java.lang.Object
-
- org.hibernate.tool.schema.extract.internal.AbstractInformationExtractorImpl
-
- org.hibernate.reactive.provider.service.AbstractReactiveInformationSchemaBasedExtractorImpl
-
- org.hibernate.reactive.provider.service.SqlServerReactiveInformationExtractorImpl
-
- All Implemented Interfaces:
InformationExtractor
public class SqlServerReactiveInformationExtractorImpl extends AbstractReactiveInformationSchemaBasedExtractorImpl
An implementation ofAbstractReactiveInformationSchemaBasedExtractorImplspecifically for SQL Server that obtains metadata from SQL Server's system tables, when it is not available from SQL Server'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 SqlServerReactiveInformationExtractorImpl(ExtractionContext extractionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdataTypeCode(String typeName)Return a JDBC Type code for the given type nameprotected <T> TprocessColumnsResultSet(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern, ExtractionContext.ResultSetProcessor<T> processor)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, Identifier tableName, ExtractionContext.ResultSetProcessor<T> processor)protected <T> TprocessTableResultSet(String catalog, String schemaPattern, String tableNamePattern, String[] types, ExtractionContext.ResultSetProcessor<T> processor)-
Methods inherited from class org.hibernate.reactive.provider.service.AbstractReactiveInformationSchemaBasedExtractorImpl
addExtractedColumnInformation, appendClauseAndParameterIfNotNullOrEmpty, getDatabaseCatalogColumnName, getDatabaseSchemaColumnName, getInformationSchemaColumnsDataTypeColumn, getResultSetCatalogLabel, getResultSetColumnNameLabel, getResultSetColumnPositionColumn, getResultSetColumnSizeLabel, getResultSetDecimalDigitsLabel, getResultSetForeignKeyColumnNameLabel, getResultSetForeignKeyLabel, getResultSetIndexNameLabel, getResultSetIndexTypeLabel, getResultSetIsNullableLabel, getResultSetPrimaryKeyCatalogLabel, getResultSetPrimaryKeyColumnNameLabel, getResultSetPrimaryKeyNameLabel, getResultSetPrimaryKeySchemaLabel, getResultSetPrimaryKeyTableLabel, getResultSetRemarksLabel, getResultSetSchemaLabel, getResultSetSqlTypeCodeLabel, getResultSetTableNameLabel, getResultSetTableTypeLabel, getResultSetTableTypesPhysicalTableConstant, getResultSetTypeNameLabel, processCatalogsResultSet, processCrossReferenceResultSet, processSchemaResultSet
-
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
-
SqlServerReactiveInformationExtractorImpl
public SqlServerReactiveInformationExtractorImpl(ExtractionContext extractionContext)
-
-
Method Detail
-
processTableResultSet
protected <T> T processTableResultSet(String catalog, String schemaPattern, String tableNamePattern, String[] types, ExtractionContext.ResultSetProcessor<T> processor) throws SQLException
- Overrides:
processTableResultSetin classAbstractReactiveInformationSchemaBasedExtractorImpl- Throws:
SQLException
-
processColumnsResultSet
protected <T> T processColumnsResultSet(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern, ExtractionContext.ResultSetProcessor<T> processor) throws SQLException
- Overrides:
processColumnsResultSetin classAbstractReactiveInformationSchemaBasedExtractorImpl- Throws:
SQLException
-
processPrimaryKeysResultSet
protected <T> T processPrimaryKeysResultSet(String catalogFilter, String schemaFilter, Identifier 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
-
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
protected int dataTypeCode(String typeName)
Description copied from class:AbstractReactiveInformationSchemaBasedExtractorImplReturn a JDBC Type code for the given type name- Overrides:
dataTypeCodein classAbstractReactiveInformationSchemaBasedExtractorImpl
-
-