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 intThe default value forINCREMENT_PARAMstatic final intThe default value forINITIAL_PARAMstatic final StringIf an explicit sequence/table name is not configured,static final StringIndicates the increment size to use.static final StringIndicates the initial value to use.static final StringIndicates the optimizer to use, either naming aOptimizerimplementation class or naming aStandardOptimizerDescriptorby 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
generatedOnExecutionMethods inherited from interface org.hibernate.id.Configurable
configure, initializeMethods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnForceIncrement, generatesOnInsert, generatesOnUpdate, generatesSometimesMethods 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 aOptimizerimplementation class or naming aStandardOptimizerDescriptorby name. Takes precedence overINCREMENT_PARAM.- See Also:
-
-
Method Details
-
getOptimizer
Optimizer getOptimizer()
-