接口的使用
org.hibernate.id.enhanced.Optimizer
-
使用Optimizer的程序包 程序包 说明 org.hibernate.id.enhanced Enhanced/improved versions of table and sequence based identifier generators targeting portability and unified configuration -
-
org.hibernate.id.enhanced中Optimizer的使用
实现Optimizer的org.hibernate.id.enhanced中的类 修饰符和类型 类 说明 classAbstractOptimizerCommon support for optimizer implementations.classHiLoOptimizerOptimizer which applies a 'hilo' algorithm in memory to achieve optimization.classLegacyHiLoAlgorithmOptimizerSlight variation fromHiLoOptimizer, maintaining compatibility with the values generated by the legacy Hibernate hilo based generators.classNoopOptimizerAn optimizer that performs no optimization.classPooledLoOptimizerVariation ofPooledOptimizerwhich interprets the incoming database value as the lo value, rather than the hi value.classPooledLoThreadLocalOptimizerVariation ofPooledOptimizerwhich interprets the incoming database value as the lo value, rather than the hi value, as well as using thread local to cache the generation state.classPooledOptimizerOptimizer which uses a pool of values, storing the next low value of the range in the database.返回Optimizer的org.hibernate.id.enhanced中的方法 修饰符和类型 方法 说明 static OptimizerOptimizerFactory. buildOptimizer(String type, Class returnClass, int incrementSize)已过时。static OptimizerOptimizerFactory. buildOptimizer(String type, Class returnClass, int incrementSize, long explicitInitialValue)Builds an optimizerOptimizerSequenceStyleGenerator. getOptimizer()Getter for property 'optimizer'.OptimizerTableGenerator. getOptimizer()The optimizer being used by this generator.返回变量类型为Optimizer的类型的org.hibernate.id.enhanced中的方法 修饰符和类型 方法 说明 Class<? extends Optimizer>StandardOptimizerDescriptor. getOptimizerClass()参数类型为Optimizer的org.hibernate.id.enhanced中的方法 修饰符和类型 方法 说明 voidDatabaseStructure. prepare(Optimizer optimizer)Prepare this structure for use.voidSequenceStructure. prepare(Optimizer optimizer)voidTableStructure. prepare(Optimizer optimizer)
-