Class SequenceInformationExtractors
java.lang.Object
org.hibernate.tool.schema.extract.spi.SequenceInformationExtractors
Create immutable sequence-information extractors from lookup SQL and row readers.
Use none() when a database version does not expose sequence metadata. Use
builder(String) for a single sequence-discovery query, and configure only
the columns or custom readers needed by that query. Supply the resulting
extractor from
Dialect.getSequenceInformationExtractor().
- Since:
- 8.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfigure the row mapping used by a standard single-query extractor. -
Method Summary
Modifier and TypeMethodDescriptionBegin configuring an extractor which executeslookupSqlexactly once.static SequenceInformationinformation(QualifiedSequenceName name, Number startValue, Number minimumValue, Number maximumValue, Number incrementValue) Create immutable sequence information preserving the supplied nullable numeric value references exactly.static SequenceInformationExtractornone()Return the stable extractor which performs no JDBC operation and reports no sequences.
-
Method Details
-
none
Return the stable extractor which performs no JDBC operation and reports no sequences. -
builder
Begin configuring an extractor which executeslookupSqlexactly once. -
information
public static SequenceInformation information(QualifiedSequenceName name, Number startValue, Number minimumValue, Number maximumValue, Number incrementValue) Create immutable sequence information preserving the supplied nullable numeric value references exactly.
-