| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.id.enhanced.OptimizerFactory
public class OptimizerFactory
Factory for Optimizer instances.
| Nested Class Summary | |
|---|---|
| static class | OptimizerFactory.HiLoOptimizerOptimizer which applies a 'hilo' algorithm in memory to achieve optimization. | 
| static interface | OptimizerFactory.InitialValueAwareOptimizerMarker interface for optimizer which wish to know the user-specified initial value. | 
| static class | OptimizerFactory.LegacyHiLoAlgorithmOptimizer | 
| static class | OptimizerFactory.NoopOptimizerAn optimizer that performs no optimization. | 
| static class | OptimizerFactory.OptimizerSupportCommon support for optimizer implementations. | 
| static class | OptimizerFactory.PooledLoOptimizer | 
| static class | OptimizerFactory.PooledOptimizerOptimizer which uses a pool of values, storing the next low value of the range in the database. | 
| static class | OptimizerFactory.StandardOptimizerDescriptor | 
| Constructor Summary | |
|---|---|
| OptimizerFactory() | |
| Method Summary | |
|---|---|
| static Optimizer | buildOptimizer(String type,
               Class returnClass,
               int incrementSize)Deprecated. Use buildOptimizer(String, Class, int, long)instead | 
| static Optimizer | buildOptimizer(String type,
               Class returnClass,
               int incrementSize,
               long explicitInitialValue)Builds an optimizer | 
| static boolean | isPooledOptimizer(String type) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public OptimizerFactory()
| Method Detail | 
|---|
public static boolean isPooledOptimizer(String type)
public static Optimizer buildOptimizer(String type,
                                       Class returnClass,
                                       int incrementSize)
buildOptimizer(String, Class, int, long) instead
type - The optimizer type, either a short-hand name or the Optimizer class name.returnClass - The generated value java typeincrementSize - The increment size.
public static Optimizer buildOptimizer(String type,
                                       Class returnClass,
                                       int incrementSize,
                                       long explicitInitialValue)
type - The optimizer type, either a short-hand name or the Optimizer class name.returnClass - The generated value java typeincrementSize - The increment size.explicitInitialValue - The user supplied initial-value (-1 indicates the user did not specify).
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||