Class SequenceInformationExtractorLegacyImpl
- java.lang.Object
-
- org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl
-
- All Implemented Interfaces:
SequenceInformationExtractor
- Direct Known Subclasses:
SequenceInformationExtractorDB2DatabaseImpl
,SequenceInformationExtractorDerbyDatabaseImpl
,SequenceInformationExtractorH2DatabaseImpl
,SequenceInformationExtractorHANADatabaseImpl
,SequenceInformationExtractorHSQLDBDatabaseImpl
,SequenceInformationExtractorMariaDBDatabaseImpl
,SequenceInformationExtractorOracleDatabaseImpl
,SequenceInformationExtractorTiDBDatabaseImpl
,SequenceNameExtractorImpl
public class SequenceInformationExtractorLegacyImpl extends Object implements SequenceInformationExtractor
-
-
Field Summary
Fields Modifier and Type Field Description static SequenceInformationExtractorLegacyImpl
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description SequenceInformationExtractorLegacyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<SequenceInformation>
extractMetadata(ExtractionContext extractionContext)
Get the information about sequences.protected String
resultSetCatalogName(ResultSet resultSet)
protected Number
resultSetIncrementValue(ResultSet resultSet)
protected Number
resultSetMaxValue(ResultSet resultSet)
protected Number
resultSetMinValue(ResultSet resultSet)
protected String
resultSetSchemaName(ResultSet resultSet)
protected String
resultSetSequenceName(ResultSet resultSet)
protected Number
resultSetStartValueSize(ResultSet resultSet)
protected String
sequenceCatalogColumn()
protected String
sequenceIncrementColumn()
protected String
sequenceMaxValueColumn()
protected String
sequenceMinValueColumn()
protected String
sequenceNameColumn()
protected String
sequenceSchemaColumn()
protected String
sequenceStartValueColumn()
-
-
-
Field Detail
-
INSTANCE
public static final SequenceInformationExtractorLegacyImpl INSTANCE
Singleton access
-
-
Method Detail
-
extractMetadata
public Iterable<SequenceInformation> extractMetadata(ExtractionContext extractionContext) throws SQLException
Description copied from interface:SequenceInformationExtractor
Get the information about sequences.- Specified by:
extractMetadata
in interfaceSequenceInformationExtractor
- Parameters:
extractionContext
- Access to resources needed to perform the extraction- Returns:
- The extracted information about existing sequences.
- Throws:
SQLException
- Don't bother handling SQLExceptions (unless you want to), we will deal with them in the caller.
-
sequenceNameColumn
protected String sequenceNameColumn()
-
sequenceCatalogColumn
protected String sequenceCatalogColumn()
-
sequenceSchemaColumn
protected String sequenceSchemaColumn()
-
sequenceStartValueColumn
protected String sequenceStartValueColumn()
-
sequenceMinValueColumn
protected String sequenceMinValueColumn()
-
sequenceMaxValueColumn
protected String sequenceMaxValueColumn()
-
sequenceIncrementColumn
protected String sequenceIncrementColumn()
-
resultSetSequenceName
protected String resultSetSequenceName(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
resultSetCatalogName
protected String resultSetCatalogName(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
resultSetSchemaName
protected String resultSetSchemaName(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
resultSetStartValueSize
protected Number resultSetStartValueSize(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
resultSetMinValue
protected Number resultSetMinValue(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
resultSetMaxValue
protected Number resultSetMaxValue(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
resultSetIncrementValue
protected Number resultSetIncrementValue(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
-