Top Description Fields Constructors Methods
org.hibernate.id.enhanced

public final Enum StandardOptimizerDescriptor

extends Enum<StandardOptimizerDescriptor>
implements OptimizerDescriptor
Class Inheritance
All Implemented Interfaces
org.hibernate.id.enhanced.OptimizerDescriptor
Imports
org.hibernate.AssertionFailure

Enumeration of the standard Hibernate id generation optimizers.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final StandardOptimizerDescriptor
HILO

Describes the optimizer for using a custom "hilo" algorithm optimization.

public static final StandardOptimizerDescriptor
LEGACY_HILO

Describes the optimizer for using a custom "hilo" algorithm optimization, following the legacy Hibernate hilo algorithm.

public static final StandardOptimizerDescriptor
NONE

Describes the optimizer for no optimization.

public static final StandardOptimizerDescriptor
POOLED

Describes the optimizer for use with tables/sequences that store the chunk information.

public static final StandardOptimizerDescriptor
POOLED_LO

Describes the optimizer for use with tables/sequences that store the chunk information.

public static final StandardOptimizerDescriptor
POOLED_LOTL

Describes the optimizer for use with tables/sequences that store the chunk information.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static OptimizerDescriptor

Returns:

The corresponding enum value; if no external name is supplied, NONE is returned; if an unrecognized external name is supplied, null is returned
fromExternalName
(String
The external name
externalName
)

Interpret the incoming external name into the appropriate enum value

public String
public Class<? extends Optimizer>
public boolean
public static StandardOptimizerDescriptor
public static StandardOptimizerDescriptor[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

HILOback to summary
public static final StandardOptimizerDescriptor HILO

Describes the optimizer for using a custom "hilo" algorithm optimization.

LEGACY_HILOback to summary
public static final StandardOptimizerDescriptor LEGACY_HILO

Describes the optimizer for using a custom "hilo" algorithm optimization, following the legacy Hibernate hilo algorithm.

NONEback to summary
public static final StandardOptimizerDescriptor NONE

Describes the optimizer for no optimization.

POOLEDback to summary
public static final StandardOptimizerDescriptor POOLED

Describes the optimizer for use with tables/sequences that store the chunk information. Here, specifically the hi value is stored in the database.

POOLED_LOback to summary
public static final StandardOptimizerDescriptor POOLED_LO

Describes the optimizer for use with tables/sequences that store the chunk information. Here, specifically the lo value is stored in the database.

POOLED_LOTLback to summary
public static final StandardOptimizerDescriptor POOLED_LOTL

Describes the optimizer for use with tables/sequences that store the chunk information. Here, specifically the lo value is stored in the database and ThreadLocal used to cache the generation state.

Constructor Detail

StandardOptimizerDescriptorback to summary
private StandardOptimizerDescriptor()

Method Detail

fromExternalNameback to summary
public static OptimizerDescriptor fromExternalName(String externalName)

Interpret the incoming external name into the appropriate enum value

Parameters
externalName:String

The external name

Returns:OptimizerDescriptor

The corresponding enum value; if no external name is supplied, NONE is returned; if an unrecognized external name is supplied, null is returned

getExternalNameback to summary
public String getExternalName()

Implements org.hibernate.id.enhanced.OptimizerDescriptor.getExternalName.

Annotations
@Override
getOptimizerClassback to summary
public Class<? extends Optimizer> getOptimizerClass()

Implements org.hibernate.id.enhanced.OptimizerDescriptor.getOptimizerClass.

Annotations
@Override
isPooledback to summary
public boolean isPooled()

Implements org.hibernate.id.enhanced.OptimizerDescriptor.isPooled.

Annotations
@Override
valueOfback to summary
public static StandardOptimizerDescriptor valueOf(String name)
valuesback to summary
public static StandardOptimizerDescriptor[] values()