Package org.hibernate.dialect.sequence
Class DerbySequenceSupport
java.lang.Object
org.hibernate.dialect.sequence.ANSISequenceSupport
org.hibernate.dialect.sequence.DB2SequenceSupport
org.hibernate.dialect.sequence.DerbySequenceSupport
- All Implemented Interfaces:
SequenceSupport
Sequence support for
DerbyDialect.- Author:
- Christian Beikov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSelectSequencePreviousValString(String sequenceName) Generate the select expression fragment that will retrieve the previous value of a sequence as part of another (typically DML) statement.Methods inherited from class org.hibernate.dialect.sequence.DB2SequenceSupport
getDropSequenceString, getSequenceNextValString, getSequencePreviousValStringMethods inherited from class org.hibernate.dialect.sequence.ANSISequenceSupport
getSelectSequenceNextValStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.dialect.sequence.SequenceSupport
getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getDropSequenceStrings, getFromDual, getSequenceNextValString, sometimesNeedsStartingValue, startingValue, supportsPooledSequences, supportsSequences
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DerbySequenceSupport
public DerbySequenceSupport()
-
-
Method Details
-
getSelectSequencePreviousValString
Description copied from interface:SequenceSupportGenerate the select expression fragment that will retrieve the previous value of a sequence as part of another (typically DML) statement.This differs from
SequenceSupport.getSequencePreviousValString(String)in that it must return an expression usable within another statement.- Specified by:
getSelectSequencePreviousValStringin interfaceSequenceSupport- Overrides:
getSelectSequencePreviousValStringin classDB2SequenceSupport- Parameters:
sequenceName- the name of the sequence- Returns:
- The "previous value" fragment.
- Throws:
MappingException- If sequences are not supported.
-