org.hibernate.id.enhanced
Class OptimizerFactory

java.lang.Object
  extended by org.hibernate.id.enhanced.OptimizerFactory

public class OptimizerFactory
extends Object

Factory for Optimizer instances.

Author:
Steve Ebersole

Nested Class Summary
static class OptimizerFactory.HiLoOptimizer
          Optimizer which applies a 'hilo' algorithm in memory to achieve optimization.
static class OptimizerFactory.NoopOptimizer
          An optimizer that performs no optimization.
static class OptimizerFactory.OptimizerSupport
          Common support for optimizer implementations.
static class OptimizerFactory.PooledOptimizer
          Optimizer which uses a pool of values, storing the next low value of the range in the database.
 
Field Summary
static String HILO
           
static String NONE
           
static String POOL
           
 
Constructor Summary
OptimizerFactory()
           
 
Method Summary
static Optimizer buildOptimizer(String type, Class returnClass, int incrementSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final String NONE
See Also:
Constant Field Values

HILO

public static final String HILO
See Also:
Constant Field Values

POOL

public static final String POOL
See Also:
Constant Field Values
Constructor Detail

OptimizerFactory

public OptimizerFactory()
Method Detail

buildOptimizer

public static Optimizer buildOptimizer(String type,
                                       Class returnClass,
                                       int incrementSize)


Copyright © null-null Red Hat Middleware, LLC. All Rights Reserved