public class SequenceStructure extends java.lang.Object implements DatabaseStructure
| Constructor and Description |
|---|
SequenceStructure(Dialect dialect,
java.lang.String sequenceName,
int initialValue,
int incrementSize,
java.lang.Class numberType) |
| Modifier and Type | Method and Description |
|---|---|
AccessCallback |
buildCallback(SessionImplementor session)
A callback to be able to get the next value from the underlying
structure as needed.
|
int |
getIncrementSize()
The configured increment size
|
int |
getInitialValue()
The configured initial value
|
java.lang.String |
getName()
The name of the database structure (table or sequence).
|
int |
getTimesAccessed()
How many times has this structure been accessed through this reference?
|
void |
prepare(Optimizer optimizer)
Prepare this structure for use.
|
java.lang.String[] |
sqlCreateStrings(Dialect dialect)
Commands needed to create the underlying structures.
|
java.lang.String[] |
sqlDropStrings(Dialect dialect)
Commands needed to drop the underlying structures.
|
public SequenceStructure(Dialect dialect, java.lang.String sequenceName, int initialValue, int incrementSize, java.lang.Class numberType)
public java.lang.String getName()
getName in interface DatabaseStructurepublic int getIncrementSize()
getIncrementSize in interface DatabaseStructurepublic int getTimesAccessed()
getTimesAccessed in interface DatabaseStructurepublic int getInitialValue()
getInitialValue in interface DatabaseStructurepublic AccessCallback buildCallback(SessionImplementor session)
buildCallback in interface DatabaseStructuresession - The session.public void prepare(Optimizer optimizer)
prepare in interface DatabaseStructureoptimizer - The optimizer being applied to the generator.public java.lang.String[] sqlCreateStrings(Dialect dialect) throws HibernateException
sqlCreateStrings in interface DatabaseStructuredialect - The database dialect being used.HibernateExceptionpublic java.lang.String[] sqlDropStrings(Dialect dialect) throws HibernateException
sqlDropStrings in interface DatabaseStructuredialect - The database dialect being used.HibernateExceptionCopyright © 2013. All Rights Reserved.