Top Description Fields Methods
org.hibernate.id

public Interface OptimizableGenerator

extends IdentifierGenerator, StandardGenerator, ExportableProducer
Known Direct Subinterfaces
org.hibernate.id.PersistentIdentifierGenerator
Imports
org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.id.enhanced.Optimizer, .StandardOptimizerDescriptor, org.hibernate.id.factory.spi.StandardGenerator

Commonality between sequence-based and table-based generators

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
DEFAULT_INITIAL_VALUE

The default value for INITIAL_PARAM

public static final String
IMPLICIT_NAME_BASE

If an explicit sequence/table name is not configured,

public static final String
INCREMENT_PARAM

Indicates the increment size to use.

public static final String
INITIAL_PARAM

Indicates the initial value to use.

public static final String
OPT_PARAM

Indicates the optimizer to use, either naming a Optimizer implementation class or naming a StandardOptimizerDescriptor by name.

Inherited from org.hibernate.id.IdentifierGenerator:
CONTRIBUTOR_NAMEENTITY_NAMEGENERATOR_NAMEJPA_ENTITY_NAME

Method Summary

Modifier and TypeMethod and Description
public Optimizer
Inherited from org.hibernate.boot.model.relational.ExportableProducer:
registerExportables
Inherited from org.hibernate.id.IdentifierGenerator:
configuregenerategenerategetEventTypesinitializeregisterExportablessupportsJdbcBatchInserts

Field Detail

DEFAULT_INCREMENT_SIZEback to summary
public static final int DEFAULT_INCREMENT_SIZE

The default value for INCREMENT_PARAM

DEFAULT_INITIAL_VALUEback to summary
public static final int DEFAULT_INITIAL_VALUE

The default value for INITIAL_PARAM

IMPLICIT_NAME_BASEback to summary
public static final String IMPLICIT_NAME_BASE

If an explicit sequence/table name is not configured,

INCREMENT_PARAMback to summary
public static final String INCREMENT_PARAM

Indicates the increment size to use. The default value is DEFAULT_INCREMENT_SIZE

INITIAL_PARAMback to summary
public static final String INITIAL_PARAM

Indicates the initial value to use. The default value is DEFAULT_INITIAL_VALUE

OPT_PARAMback to summary
public static final String OPT_PARAM

Indicates the optimizer to use, either naming a Optimizer implementation class or naming a StandardOptimizerDescriptor by name. Takes precedence over INCREMENT_PARAM.

Method Detail

getOptimizerback to summary
public Optimizer getOptimizer()