Package org.hibernate.id.enhanced
Class AbstractOptimizer
- java.lang.Object
-
- org.hibernate.id.enhanced.AbstractOptimizer
-
- All Implemented Interfaces:
Optimizer
- Direct Known Subclasses:
HiLoOptimizer
,LegacyHiLoAlgorithmOptimizer
,NoopOptimizer
,PooledLoOptimizer
,PooledLoThreadLocalOptimizer
,PooledOptimizer
public abstract class AbstractOptimizer extends Object implements Optimizer
Common support forOptimizer
implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
incrementSize
protected Class<?>
returnClass
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIncrementSize()
Retrieves the defined increment size.Class<?>
getReturnClass()
Getter for property 'returnClass'.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.id.enhanced.Optimizer
applyIncrementSizeToSourceValues, generate, getLastSourceValue
-
-
-
-
Field Detail
-
returnClass
protected final Class<?> returnClass
-
incrementSize
protected final int incrementSize
-
-
Method Detail
-
getReturnClass
public final Class<?> getReturnClass()
Getter for property 'returnClass'. This is the Java class which is used to represent the id (e.g.Long
).- Returns:
- Value for property 'returnClass'.
-
getIncrementSize
public final int getIncrementSize()
Description copied from interface:Optimizer
Retrieves the defined increment size.- Specified by:
getIncrementSize
in interfaceOptimizer
- Returns:
- The increment size.
-
-