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 int
DEFAULT_INCREMENT_SIZE
The default value forINCREMENT_PARAM
static int
DEFAULT_INITIAL_VALUE
The default value forINITIAL_PARAM
static String
IMPLICIT_NAME_BASE
If an explicit sequence/table name is not configured,static String
INCREMENT_PARAM
Indicates the increment size to use.static String
INITIAL_PARAM
Indicates the initial value to use.static String
OPT_PARAM
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optimizer
getOptimizer()
-
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 aOptimizer
implementation class or naming aStandardOptimizerDescriptor
by name. Takes precedence overINCREMENT_PARAM
.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOptimizer
Optimizer getOptimizer()
-
-