|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatabaseStructure
Encapsulates definition of the underlying data structure backing a sequence-style generator.
| 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. |
| Method Detail |
|---|
String getName()
int getTimesAccessed()
int getIncrementSize()
AccessCallback buildCallback(SessionImplementor session)
session - The session.
void prepare(Optimizer optimizer)
optimizer - The optimizer being applied to the generator.String[] sqlCreateStrings(Dialect dialect)
dialect - The database dialect being used.
String[] sqlDropStrings(Dialect dialect)
dialect - The database dialect being used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||