|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.id.enhanced.SequenceStructure
public class SequenceStructure
Describes a sequence.
| Constructor Summary | |
|---|---|
SequenceStructure(Dialect dialect,
String sequenceName,
int initialValue,
int incrementSize)
|
|
| Method Summary | |
|---|---|
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 |
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. |
String[] |
sqlCreateStrings(Dialect dialect)
Commands needed to create the underlying structures. |
String[] |
sqlDropStrings(Dialect dialect)
Commands needed to drop the underlying structures. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceStructure(Dialect dialect,
String sequenceName,
int initialValue,
int incrementSize)
| Method Detail |
|---|
public String getName()
DatabaseStructure
getName in interface DatabaseStructurepublic int getIncrementSize()
DatabaseStructure
getIncrementSize in interface DatabaseStructurepublic int getTimesAccessed()
DatabaseStructure
getTimesAccessed in interface DatabaseStructurepublic AccessCallback buildCallback(SessionImplementor session)
DatabaseStructure
buildCallback in interface DatabaseStructuresession - The session.
public void prepare(Optimizer optimizer)
DatabaseStructure
prepare in interface DatabaseStructureoptimizer - The optimizer being applied to the generator.
public String[] sqlCreateStrings(Dialect dialect)
throws HibernateException
DatabaseStructure
sqlCreateStrings in interface DatabaseStructuredialect - The database dialect being used.
HibernateException
public String[] sqlDropStrings(Dialect dialect)
throws HibernateException
DatabaseStructure
sqlDropStrings in interface DatabaseStructuredialect - The database dialect being used.
HibernateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||