Package org.hibernate.id.enhanced
Class OptimizerFactory
java.lang.Object
org.hibernate.id.enhanced.OptimizerFactory
Factory for
Optimizer
instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic Optimizer
buildOptimizer
(OptimizerDescriptor type, Class<?> returnClass, int incrementSize, long explicitInitialValue) Builds an optimizerstatic String
determineImplicitOptimizerName
(int incrementSize, Properties configSettings) Determine the optimizer to use when there was not one explicitly specified.
-
Method Details
-
buildOptimizer
public static Optimizer buildOptimizer(OptimizerDescriptor type, Class<?> returnClass, int incrementSize, long explicitInitialValue) Builds an optimizer- Parameters:
type
- The optimizer type, either a shorthand name or theOptimizer
class name.returnClass
- The generated value java typeincrementSize
- The increment size.explicitInitialValue
- The user supplied initial-value (-1 indicates the user did not specify).- Returns:
- The built optimizer
-
determineImplicitOptimizerName
Determine the optimizer to use when there was not one explicitly specified.
-