程序包 org.hibernate.id
类 IdentityGenerator.InsertSelectDelegate
- java.lang.Object
-
- org.hibernate.id.insert.AbstractReturningDelegate
-
- org.hibernate.id.IdentityGenerator.InsertSelectDelegate
-
- 所有已实现的接口:
InsertGeneratedIdentifierDelegate
- 封闭类:
- IdentityGenerator
public static class IdentityGenerator.InsertSelectDelegate extends AbstractReturningDelegate implements InsertGeneratedIdentifierDelegate
Delegate for dealing with IDENTITY columns where the dialect supports returning the generated IDENTITY value directly from the insert statement.
-
-
构造器概要
构造器 构造器 说明 InsertSelectDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SerializabledetermineGeneratedIdentifier(SharedSessionContractImplementor session, Object entity)SerializableexecuteAndExtract(PreparedStatement insert, SharedSessionContractImplementor session)protected PreparedStatementprepare(String insertSQL, SharedSessionContractImplementor session)IdentifierGeneratingInsertprepareIdentifierGeneratingInsert()Build aInsertspecific to the delegate's mode of handling generated key values.-
从类继承的方法 org.hibernate.id.insert.AbstractReturningDelegate
getPersister, performInsert, releaseStatement
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
performInsert
-
-
-
-
构造器详细资料
-
InsertSelectDelegate
public InsertSelectDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
-
方法详细资料
-
prepareIdentifierGeneratingInsert
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
从接口复制的说明:InsertGeneratedIdentifierDelegateBuild aInsertspecific to the delegate's mode of handling generated key values.- 指定者:
prepareIdentifierGeneratingInsert在接口中InsertGeneratedIdentifierDelegate- 返回:
- The insert object.
-
prepare
protected PreparedStatement prepare(String insertSQL, SharedSessionContractImplementor session) throws SQLException
- 指定者:
prepare在类中AbstractReturningDelegate- 抛出:
SQLException
-
executeAndExtract
public Serializable executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session) throws SQLException
- 指定者:
executeAndExtract在类中AbstractReturningDelegate- 抛出:
SQLException
-
determineGeneratedIdentifier
public Serializable determineGeneratedIdentifier(SharedSessionContractImplementor session, Object entity)
-
-