Package org.hibernate.dialect.sequence
Class OracleSequenceSupport
- java.lang.Object
-
- org.hibernate.dialect.sequence.NextvalSequenceSupport
-
- org.hibernate.dialect.sequence.OracleSequenceSupport
-
- All Implemented Interfaces:
SequenceSupport
public final class OracleSequenceSupport extends NextvalSequenceSupport
Sequence support forOracleDialect
.- See Also:
- Oracle Database Documentation
-
-
Field Summary
Fields Modifier and Type Field Description static SequenceSupport
INSTANCE
Deprecated, for removal: This API element is subject to removal in a future version.Construct instance based on version instead.
-
Constructor Summary
Constructors Constructor Description OracleSequenceSupport(DatabaseVersion version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDropSequenceString(String sequenceName)
Typically dialects which support sequences can drop a sequence with a single command.String
getFromDual()
static SequenceSupport
getInstance(Dialect dialect)
boolean
sometimesNeedsStartingValue()
Do we need to explicitly specifyminvalue
ormaxvalue
when the initial value doesn't have the same sign as the increment?-
Methods inherited from class org.hibernate.dialect.sequence.NextvalSequenceSupport
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, getDropSequenceStrings, getSequenceNextValString, getSequenceNextValString, getSequencePreviousValString, startingValue, supportsPooledSequences, supportsSequences
-
-
-
-
Field Detail
-
INSTANCE
@Deprecated(forRemoval=true) public static final SequenceSupport INSTANCE
Deprecated, for removal: This API element is subject to removal in a future version.Construct instance based on version instead.
-
-
Constructor Detail
-
OracleSequenceSupport
public OracleSequenceSupport(DatabaseVersion version)
-
-
Method Detail
-
getInstance
public static SequenceSupport getInstance(Dialect dialect)
-
getFromDual
public String getFromDual()
-
sometimesNeedsStartingValue
public boolean sometimesNeedsStartingValue()
Description copied from interface:SequenceSupport
Do we need to explicitly specifyminvalue
ormaxvalue
when the initial value doesn't have the same sign as the increment?
-
getDropSequenceString
public String getDropSequenceString(String sequenceName) throws MappingException
Description copied from interface:SequenceSupport
Typically dialects which support sequences can drop a sequence with a single command. This is convenience form ofSequenceSupport.getDropSequenceStrings(java.lang.String)
to help facilitate that.Dialects which support sequences and can drop a sequence in a single command need *only* override this method. Dialects which support sequences but require multiple commands to drop a sequence should instead override
SequenceSupport.getDropSequenceStrings(java.lang.String)
.- Parameters:
sequenceName
- The name of the sequence- Returns:
- The sequence drop commands
- Throws:
MappingException
- If sequences are not supported.
-
-