org.hibernate.id.enhanced
Class OptimizerFactory.OptimizerSupport
java.lang.Object
org.hibernate.id.enhanced.OptimizerFactory.OptimizerSupport
- OptimizerFactory
- Optimizer
public static abstract class OptimizerFactory.OptimizerSupport
extends java.lang.Object
Common support for optimizer implementations.
incrementSize
protected final int incrementSize
returnClass
protected final Class returnClass
OptimizerSupport
protected OptimizerSupport(Class returnClass,
int incrementSize)
Construct an optimizer
returnClass
- The expected id class.incrementSize
- The increment size
getReturnClass
public final Class getReturnClass()
Getter for property 'returnClass'. This is the Java
class which is used to represent the id (e.g. java.lang.Long
).
- Value for property 'returnClass'.
make
protected final Serializable make(long value)
Take the primitive long value and "make" (or wrap) it into the
id type
.
value
- The primitive value to make/wrap.