程序包 org.hibernate.id
类 IdentityGenerator
- java.lang.Object
-
- org.hibernate.id.AbstractPostInsertGenerator
-
- org.hibernate.id.IdentityGenerator
-
- 所有已实现的接口:
BulkInsertionCapableIdentifierGenerator,IdentifierGenerator,PostInsertIdentifierGenerator
public class IdentityGenerator extends AbstractPostInsertGenerator
A generator for use with ANSI-SQL IDENTITY columns used as the primary key. The IdentityGenerator for autoincrement/identity key generation.
Indicates to the Session that identity (ie. identity/autoincrement column) key generation should be used.- 作者:
- Christoph Sturm
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classIdentityGenerator.BasicDelegateDelegate for dealing with IDENTITY columns where the dialect requires an additional command execution to retrieve the generated IDENTITY valuestatic classIdentityGenerator.InsertSelectDelegateDelegate for dealing with IDENTITY columns where the dialect supports returning the generated IDENTITY value directly from the insert statement.
-
字段概要
-
从接口继承的字段 org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
构造器概要
构造器 构造器 说明 IdentityGenerator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 InsertGeneratedIdentifierDelegategetInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)-
从类继承的方法 org.hibernate.id.AbstractPostInsertGenerator
determineBulkInsertionIdentifierGenerationSelectFragment, generate, supportsBulkInsertionIdentifierGeneration
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.PostInsertIdentifierGenerator
supportsJdbcBatchInserts
-
-
-
-
方法详细资料
-
getInsertGeneratedIdentifierDelegate
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException
-
-