接口 DatabaseStructure
-
- 所有超级接口:
ExportableProducer
- 所有已知实现类:
SequenceStructure,TableStructure
public interface DatabaseStructure extends ExportableProducer
Encapsulates definition of the underlying data structure backing a sequence-style generator.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 AccessCallbackbuildCallback(SharedSessionContractImplementor session)A callback to be able to get the next value from the underlying structure as needed.intgetIncrementSize()The configured increment sizeintgetInitialValue()The configured initial valueStringgetName()The name of the database structure (table or sequence).intgetTimesAccessed()How many times has this structure been accessed through this reference?booleanisPhysicalSequence()Is the structure physically a sequence?voidprepare(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.-
从接口继承的方法 org.hibernate.boot.model.relational.ExportableProducer
registerExportables
-
-
-
-
方法详细资料
-
getName
String getName()
The name of the database structure (table or sequence).- 返回:
- The structure name.
-
getTimesAccessed
int getTimesAccessed()
How many times has this structure been accessed through this reference?- 返回:
- The number of accesses.
-
getInitialValue
int getInitialValue()
The configured initial value- 返回:
- The configured initial value
-
getIncrementSize
int getIncrementSize()
The configured increment size- 返回:
- The configured increment size
-
buildCallback
AccessCallback buildCallback(SharedSessionContractImplementor session)
A callback to be able to get the next value from the underlying structure as needed.- 参数:
session- The session.- 返回:
- The next value.
-
prepare
void prepare(Optimizer optimizer)
Prepare this structure for use. Called sometime after instantiation, but before first use.- 参数:
optimizer- The optimizer being applied to the generator.
-
sqlCreateStrings
String[] sqlCreateStrings(Dialect dialect)
Commands needed to create the underlying structures.- 参数:
dialect- The database dialect being used.- 返回:
- The creation commands.
-
sqlDropStrings
String[] sqlDropStrings(Dialect dialect)
Commands needed to drop the underlying structures.- 参数:
dialect- The database dialect being used.- 返回:
- The drop commands.
-
isPhysicalSequence
boolean isPhysicalSequence()
Is the structure physically a sequence?- 返回:
trueif the actual database structure is a sequence;falseotherwise.
-
-