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

public Class SQLServerSequenceSupport

extends ANSISequenceSupport
Class Inheritance
Known Direct Subclasses
org.hibernate.dialect.sequence.SQLServer16SequenceSupport
Imports
org.hibernate.MappingException

Sequence support for org.hibernate.dialect.SQLServerDialect.
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
getSequencePreviousValString(String
the name of the sequence
sequenceName
)

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

Generate the appropriate select statement to to retrieve the previous value of a sequence.
Inherited from org.hibernate.dialect.sequence.ANSISequenceSupport:
getSelectSequenceNextValStringgetSelectSequencePreviousValString

Field Detail

INSTANCEback to summary
public static final SequenceSupport INSTANCE

Hides org.hibernate.dialect.sequence.ANSISequenceSupport.INSTANCE.

Constructor Detail

SQLServerSequenceSupportback to summary
public SQLServerSequenceSupport()

Method Detail

getSequencePreviousValStringback to summary
public String getSequencePreviousValString(String sequenceName) throws MappingException

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

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

Generate the appropriate select statement to to retrieve the previous value of a sequence.

This should be a stand alone select statement.

Parameters
sequenceName:String

the name of the sequence

Returns:String

String The select "previous value" statement.

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