|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.engine.TransactionHelper
org.hibernate.id.enhanced.TableStructure
public class TableStructure
Describes a table used to mimic sequence behavior
| Constructor Summary | |
|---|---|
TableStructure(Dialect dialect,
java.lang.String tableName,
java.lang.String valueColumnName,
int initialValue,
int incrementSize,
java.lang.Class numberType)
|
|
| Method Summary | |
|---|---|
AccessCallback |
buildCallback(SessionImplementor session)
A callback to be able to get the next value from the underlying structure as needed. |
protected java.io.Serializable |
doWorkInCurrentTransaction(java.sql.Connection conn,
java.lang.String sql)
The work to be done |
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. |
| Methods inherited from class org.hibernate.engine.TransactionHelper |
|---|
doWorkInNewTransaction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableStructure(Dialect dialect,
java.lang.String tableName,
java.lang.String valueColumnName,
int initialValue,
int incrementSize,
java.lang.Class numberType)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface DatabaseStructurepublic int getInitialValue()
getInitialValue in interface DatabaseStructurepublic int getIncrementSize()
getIncrementSize in interface DatabaseStructurepublic int getTimesAccessed()
getTimesAccessed in interface DatabaseStructurepublic void prepare(Optimizer optimizer)
prepare in interface DatabaseStructureoptimizer - The optimizer being applied to the generator.public AccessCallback buildCallback(SessionImplementor session)
buildCallback in interface DatabaseStructuresession - The session.
public java.lang.String[] sqlCreateStrings(Dialect dialect)
throws HibernateException
sqlCreateStrings in interface DatabaseStructuredialect - The database dialect being used.
HibernateException
public java.lang.String[] sqlDropStrings(Dialect dialect)
throws HibernateException
sqlDropStrings in interface DatabaseStructuredialect - The database dialect being used.
HibernateException
protected java.io.Serializable doWorkInCurrentTransaction(java.sql.Connection conn,
java.lang.String sql)
throws java.sql.SQLException
doWorkInCurrentTransaction in class TransactionHelperjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||