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
public class SQLServerSequenceSupport extends ANSISequenceSupport
Sequence support forSQLServerDialect
.
-
-
Field Summary
Fields Modifier and Type Field Description static SequenceSupport
INSTANCE
-
Constructor Summary
Constructors Constructor Description SQLServerSequenceSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSequencePreviousValString(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, getDropSequenceString, getDropSequenceStrings, getFromDual, getSequenceNextValString, getSequenceNextValString, sometimesNeedsStartingValue, startingValue, supportsPooledSequences, supportsSequences
-
-
-
-
Field Detail
-
INSTANCE
public static final SequenceSupport INSTANCE
-
-
Method Detail
-
getSequencePreviousValString
public String getSequencePreviousValString(String sequenceName) throws MappingException
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.
-
-