程序包 org.hibernate.id
类 SequenceIdentityGenerator
- java.lang.Object
-
- org.hibernate.id.SequenceGenerator
-
- org.hibernate.id.SequenceIdentityGenerator
-
- 所有已实现的接口:
ExportableProducer,BulkInsertionCapableIdentifierGenerator,Configurable,IdentifierGenerator,PersistentIdentifierGenerator,PostInsertIdentifierGenerator
@Deprecated public class SequenceIdentityGenerator extends SequenceGenerator implements PostInsertIdentifierGenerator
已过时。See deprecation discussion onSequenceGeneratorA generator which combines sequence generation with immediate retrieval through JDBC3getGeneratedKeys. In this respect it works much like ANSI-SQL IDENTITY generation. This generator only known to work with newer Oracle drivers compiled for JDK 1.4 (JDBC3). Note: Due to a bug in Oracle drivers, sql comments on these insert statements are completely disabled.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSequenceIdentityGenerator.Delegate已过时。static classSequenceIdentityGenerator.NoCommentsInsert已过时。
-
字段概要
-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 SequenceIdentityGenerator()已过时。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidconfigure(Type type, Properties params, ServiceRegistry serviceRegistry)已过时。Configure this instance, given the value of parameters specified by the user as <param> elements.Serializablegenerate(SharedSessionContractImplementor s, Object obj)已过时。Generate a new identifier.InsertGeneratedIdentifierDelegategetInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)已过时。-
从类继承的方法 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.PostInsertIdentifierGenerator
supportsJdbcBatchInserts
-
-
-
-
方法详细资料
-
generate
public Serializable generate(SharedSessionContractImplementor s, Object obj)
已过时。从接口复制的说明:IdentifierGeneratorGenerate a new identifier.- 指定者:
generate在接口中IdentifierGenerator- 覆盖:
generate在类中SequenceGenerator- 参数:
s- The session from which the request originatesobj- the entity or collection (idbag) for which the id is being generated- 返回:
- a new identifier
-
getInsertGeneratedIdentifierDelegate
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException
已过时。
-
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
-
-