Top Description Fields Constructors Methods
org.hibernate.dialect.sequence

public final Class DerbySequenceSupport

extends DB2SequenceSupport
Class Inheritance
Imports
org.hibernate.MappingException

Sequence support for org.hibernate.dialect.DerbyDialect.
Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
public static final SequenceSupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getSelectSequencePreviousValString(String
the name of the sequence
sequenceName
)

Overrides org.hibernate.dialect.sequence.DB2SequenceSupport.getSelectSequencePreviousValString.

Overrides default org.hibernate.dialect.sequence.SequenceSupport.getSelectSequencePreviousValString.

Generate the select expression fragment that will retrieve the previous value of a sequence as part of another (typically DML) statement.
Inherited from org.hibernate.dialect.sequence.DB2SequenceSupport:
getDropSequenceStringgetSequenceNextValStringgetSequencePreviousValString

Field Detail

INSTANCEback to summary
public static final SequenceSupport INSTANCE

Hides org.hibernate.dialect.sequence.DB2SequenceSupport.INSTANCE.

Constructor Detail

DerbySequenceSupportback to summary
public DerbySequenceSupport()

Method Detail

getSelectSequencePreviousValStringback to summary
public String getSelectSequencePreviousValString(String sequenceName) throws MappingException

Overrides org.hibernate.dialect.sequence.DB2SequenceSupport.getSelectSequencePreviousValString.

Overrides default org.hibernate.dialect.sequence.SequenceSupport.getSelectSequencePreviousValString.

Doc from org.hibernate.dialect.sequence.SequenceSupport.getSelectSequencePreviousValString.

Generate the select expression fragment that will retrieve the previous value of a sequence as part of another (typically DML) statement.

This differs from getSequencePreviousValString(String) in that it must return an expression usable within another statement.

Parameters
sequenceName:String

the name of the sequence

Returns:String

The "previous value" fragment.

Annotations
@Override
Exceptions
MappingException:
If sequences are not supported.