Package org.hibernate.id
Interface OptimizableGenerator
-
- All Superinterfaces:
BeforeExecutionGenerator,Configurable,ExportableProducer,Generator,IdentifierGenerator,Serializable,StandardGenerator
- All Known Subinterfaces:
PersistentIdentifierGenerator
- All Known Implementing Classes:
OrderedSequenceGenerator,SequenceStyleGenerator,TableGenerator
public interface OptimizableGenerator extends IdentifierGenerator, StandardGenerator, ExportableProducer
Commonality between sequence-based and table-based generators
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_INCREMENT_SIZEThe default value forINCREMENT_PARAMstatic intDEFAULT_INITIAL_VALUEThe default value forINITIAL_PARAMstatic StringIMPLICIT_NAME_BASEIf an explicit sequence/table name is not configured,static StringINCREMENT_PARAMIndicates the increment size to use.static StringINITIAL_PARAMIndicates the initial value to use.static StringOPT_PARAMIndicates 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OptimizergetOptimizer()-
Methods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecution
-
Methods inherited from interface org.hibernate.generator.Generator
generatesOnInsert, generatesOnUpdate, generatesSometimes
-
Methods inherited from interface org.hibernate.id.IdentifierGenerator
configure, generate, generate, getEventTypes, initialize, registerExportables, supportsJdbcBatchInserts
-
-
-
-
Field Detail
-
IMPLICIT_NAME_BASE
static final String IMPLICIT_NAME_BASE
If an explicit sequence/table name is not configured,- See Also:
- Constant Field Values
-
INITIAL_PARAM
static final String INITIAL_PARAM
Indicates the initial value to use. The default value isDEFAULT_INITIAL_VALUE- See Also:
- Constant Field Values
-
DEFAULT_INITIAL_VALUE
static final int DEFAULT_INITIAL_VALUE
The default value forINITIAL_PARAM- See Also:
- Constant Field Values
-
INCREMENT_PARAM
static final String INCREMENT_PARAM
Indicates the increment size to use. The default value isDEFAULT_INCREMENT_SIZE- See Also:
- Constant Field Values
-
DEFAULT_INCREMENT_SIZE
static final int DEFAULT_INCREMENT_SIZE
The default value forINCREMENT_PARAM- See Also:
- Constant Field Values
-
OPT_PARAM
static final String OPT_PARAM
Indicates the optimizer to use, either naming aOptimizerimplementation class or naming aStandardOptimizerDescriptorby name. Takes precedence overINCREMENT_PARAM.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOptimizer
Optimizer getOptimizer()
-
-