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 IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME -
Method Summary
Methods inherited from interface BeforeExecutionGenerator
generatedOnExecutionMethods inherited from interface Configurable
configure, initializeMethods inherited from interface Generator
allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnForceIncrement, generatesOnInsert, generatesOnUpdate, generatesSometimesMethods inherited from interface 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
-
INCREMENT_PARAM
Indicates the increment size to use. The default value isDEFAULT_INCREMENT_SIZE- See Also:
-
DEFAULT_INCREMENT_SIZE
-
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()
-