Class NextvalSequenceSupport
java.lang.Object
org.hibernate.dialect.sequence.spi.NextvalSequenceSupport
- All Implemented Interfaces:
SequenceSupport
Standard family base for databases using sequence.nextval and
sequence.currval expressions.
Extend this class only when both expression forms match the database, and override the surrounding select or DDL grammar where necessary.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a nextval-family strategy or provider subclass. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetSelectSequenceNextValString(String sequenceName) Render the expression which obtains the next value inside another SQL statement.final StringgetSelectSequencePreviousValString(String sequenceName) Render the expression which obtains the previous value inside another SQL statement.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SequenceSupport
getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getDropSequenceString, getDropSequenceStrings, getFromDual, getRestartSequenceString, getSequenceNextValString, getSequenceNextValString, getSequencePreviousValString, sometimesNeedsStartingValue, startingValue, supportsPooledSequences, supportsSequences
-
Constructor Details
-
NextvalSequenceSupport
-
-
Method Details
-
getSelectSequenceNextValString
Description copied from interface:SequenceSupportRender the expression which obtains the next value inside another SQL statement. Do not include a surroundingselectstatement.- Specified by:
getSelectSequenceNextValStringin interfaceSequenceSupport- Parameters:
sequenceName- the qualified sequence name- Returns:
- the next-value expression
-
getSelectSequencePreviousValString
Description copied from interface:SequenceSupportRender the expression which obtains the previous value inside another SQL statement. Override this method only when the database exposes such an expression.- Specified by:
getSelectSequencePreviousValStringin interfaceSequenceSupport- Parameters:
sequenceName- the qualified sequence name- Returns:
- the previous-value expression
-