Package org.hibernate.dialect.sequence
Class SQLServerSequenceSupport
java.lang.Object
org.hibernate.dialect.sequence.ANSISequenceSupport
org.hibernate.dialect.sequence.SQLServerSequenceSupport
- All Implemented Interfaces:
SequenceSupport
- Direct Known Subclasses:
SQLServer16SequenceSupport
Sequence support for
SQLServerDialect
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSequencePreviousValString
(String sequenceName) Generate the appropriate select statement to to retrieve the previous value of a sequence.Methods inherited from class org.hibernate.dialect.sequence.ANSISequenceSupport
getSelectSequenceNextValString, getSelectSequencePreviousValString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.dialect.sequence.SequenceSupport
getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getDropSequenceString, getDropSequenceStrings, getFromDual, getSequenceNextValString, getSequenceNextValString, sometimesNeedsStartingValue, startingValue, supportsPooledSequences, supportsSequences
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SQLServerSequenceSupport
public SQLServerSequenceSupport()
-
-
Method Details
-
getSequencePreviousValString
Description copied from interface:SequenceSupport
Generate the appropriate select statement to to retrieve the previous value of a sequence.This should be a stand alone select statement.
- Parameters:
sequenceName
- the name of the sequence- Returns:
- String The select "previous value" statement.
- Throws:
MappingException
- If sequences are not supported.
-