类 GetGeneratedKeysDelegate
- java.lang.Object
-
- org.hibernate.id.insert.AbstractReturningDelegate
-
- org.hibernate.dialect.identity.GetGeneratedKeysDelegate
-
- 所有已实现的接口:
InsertGeneratedIdentifierDelegate
public class GetGeneratedKeysDelegate extends AbstractReturningDelegate implements InsertGeneratedIdentifierDelegate
Delegate for dealing with IDENTITY columns using JDBC3 getGeneratedKeys- 作者:
- Andrea Boriero
-
-
构造器概要
构造器 构造器 说明 GetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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
-
-
-
-
构造器详细资料
-
GetGeneratedKeysDelegate
public GetGeneratedKeysDelegate(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
-
-