Package org.hibernate.id
Interface OptimizableGenerator
- All Superinterfaces:
BeforeExecutionGenerator
,Configurable
,ExportableProducer
,Generator
,IdentifierGenerator
,Serializable
- All Known Subinterfaces:
PersistentIdentifierGenerator
- All Known Implementing Classes:
OrderedSequenceGenerator
,SequenceStyleGenerator
,TableGenerator
Commonality between sequence-based and table-based generators
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default value forINCREMENT_PARAM
static final int
The default value forINITIAL_PARAM
static final String
If an explicit sequence/table name is not configured,static final String
Indicates the increment size to use.static final String
Indicates the initial value to use.static final String
Indicates the optimizer to use, either naming aOptimizer
implementation class or naming aStandardOptimizerDescriptor
by name.Fields inherited from interface org.hibernate.id.IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
Method Summary
Methods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecution
Methods inherited from interface org.hibernate.id.Configurable
configure, initialize
Methods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimes
Methods inherited from interface org.hibernate.id.IdentifierGenerator
configure, generate, generate, getEventTypes, registerExportables
-
Field Details
-
IMPLICIT_NAME_BASE
If an explicit sequence/table name is not configured,- See Also:
-
INITIAL_PARAM
Indicates the initial value to use. The default value isDEFAULT_INITIAL_VALUE
- See Also:
-
DEFAULT_INITIAL_VALUE
static final int DEFAULT_INITIAL_VALUEThe default value forINITIAL_PARAM
- See Also:
-
INCREMENT_PARAM
Indicates the increment size to use. The default value isDEFAULT_INCREMENT_SIZE
- See Also:
-
DEFAULT_INCREMENT_SIZE
static final int DEFAULT_INCREMENT_SIZEThe default value forINCREMENT_PARAM
- See Also:
-
OPT_PARAM
Indicates the optimizer to use, either naming aOptimizer
implementation class or naming aStandardOptimizerDescriptor
by name. Takes precedence overINCREMENT_PARAM
.- See Also:
-
-
Method Details
-
getOptimizer
Optimizer getOptimizer()
-