类 OptimizerFactory
- java.lang.Object
-
- org.hibernate.id.enhanced.OptimizerFactory
-
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static OptimizerbuildOptimizer(String type, Class returnClass, int incrementSize)已过时。UsebuildOptimizer(String, Class, int, long)insteadstatic OptimizerbuildOptimizer(String type, Class returnClass, int incrementSize, long explicitInitialValue)Builds an optimizerstatic StringdetermineImplicitOptimizerName(int incrementSize, Properties configSettings)Determine the optimizer to use when there was not one explicitly specified.static booleanisPooledOptimizer(String optimizerName)Does the given optimizer name represent a pooled strategy?
-
-
-
字段详细资料
-
NONE
@Deprecated public static final String NONE
Deprecated!
-
HILO
@Deprecated public static final String HILO
Deprecated!
-
LEGACY_HILO
@Deprecated public static final String LEGACY_HILO
Deprecated!- 另请参阅:
- 常量字段值
-
POOL
@Deprecated public static final String POOL
Deprecated!- 另请参阅:
- 常量字段值
-
POOL_LO
@Deprecated public static final String POOL_LO
Deprecated!- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
isPooledOptimizer
public static boolean isPooledOptimizer(String optimizerName)
Does the given optimizer name represent a pooled strategy?- 参数:
optimizerName- The name of the optimizer- 返回:
trueindicates the optimizer is a pooled strategy.
-
buildOptimizer
@Deprecated public static Optimizer buildOptimizer(String type, Class returnClass, int incrementSize)
已过时。UsebuildOptimizer(String, Class, int, long)insteadBuilds an optimizer- 参数:
type- The optimizer type, either a short-hand name or theOptimizerclass name.returnClass- The generated value java typeincrementSize- The increment size.- 返回:
- The built optimizer
-
buildOptimizer
public static Optimizer buildOptimizer(String type, Class returnClass, int incrementSize, long explicitInitialValue)
Builds an optimizer- 参数:
type- The optimizer type, either a short-hand name or theOptimizerclass name.returnClass- The generated value java typeincrementSize- The increment size.explicitInitialValue- The user supplied initial-value (-1 indicates the user did not specify).- 返回:
- The built optimizer
-
determineImplicitOptimizerName
public static String determineImplicitOptimizerName(int incrementSize, Properties configSettings)
Determine the optimizer to use when there was not one explicitly specified.
-
-