程序包 org.hibernate.id
类 SequenceHiLoGenerator
- java.lang.Object
-
- org.hibernate.id.SequenceGenerator
-
- org.hibernate.id.SequenceHiLoGenerator
-
- 所有已实现的接口:
ExportableProducer,BulkInsertionCapableIdentifierGenerator,Configurable,IdentifierGenerator,PersistentIdentifierGenerator
@Deprecated public class SequenceHiLoGenerator extends SequenceGenerator
已过时。See deprecation discussion onSequenceGeneratorseqhilo
An IdentifierGenerator that combines a hi/lo algorithm with an underlying oracle-style sequence that generates hi values. The user may specify a maximum lo value to determine how often new hi values are fetched.
Mapping parameters supported: sequence, max_lo, parameters.- 作者:
- Gavin King
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringMAX_LO已过时。-
从类继承的字段 org.hibernate.id.SequenceGenerator
PARAMETERS, SEQUENCE
-
从接口继承的字段 org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
从接口继承的字段 org.hibernate.id.PersistentIdentifierGenerator
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES
-
-
构造器概要
构造器 构造器 说明 SequenceHiLoGenerator()已过时。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidconfigure(Type type, Properties params, ServiceRegistry serviceRegistry)已过时。Configure this instance, given the value of parameters specified by the user as <param> elements.Serializablegenerate(SharedSessionContractImplementor session, Object obj)已过时。Generate a new identifier.-
从类继承的方法 org.hibernate.id.SequenceGenerator
buildHolder, determineBulkInsertionIdentifierGenerationSelectFragment, generateHolder, generatorKey, getIdentifierType, getSequenceName, registerExportables, sqlCreateStrings, sqlDropStrings, supportsBulkInsertionIdentifierGeneration
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.IdentifierGenerator
supportsJdbcBatchInserts
-
-
-
-
方法详细资料
-
configure
public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException
已过时。从接口复制的说明:ConfigurableConfigure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.- 指定者:
configure在接口中Configurable- 覆盖:
configure在类中SequenceGenerator- 参数:
type- The id property type descriptorparams- param values, keyed by parameter nameserviceRegistry- Access to service that may be needed.- 抛出:
MappingException
-
generate
public Serializable generate(SharedSessionContractImplementor session, Object obj)
已过时。从接口复制的说明:IdentifierGeneratorGenerate a new identifier.- 指定者:
generate在接口中IdentifierGenerator- 覆盖:
generate在类中SequenceGenerator- 参数:
session- The session from which the request originatesobj- the entity or collection (idbag) for which the id is being generated- 返回:
- a new identifier
-
-