类 AbstractReturningDelegate
- java.lang.Object
-
- org.hibernate.id.insert.AbstractReturningDelegate
-
- 所有已实现的接口:
InsertGeneratedIdentifierDelegate
- 直接已知子类:
GetGeneratedKeysDelegate,IdentityGenerator.InsertSelectDelegate,SequenceIdentityGenerator.Delegate
public abstract class AbstractReturningDelegate extends Object implements InsertGeneratedIdentifierDelegate
Abstract InsertGeneratedIdentifierDelegate implementation where the underlying strategy causes the generated identifier to be returned as an effect of performing the insert statement. Thus, there is no need for an additional sql statement to determine the generated identifier.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 AbstractReturningDelegate(PostInsertIdentityPersister persister)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract SerializableexecuteAndExtract(PreparedStatement insert, SharedSessionContractImplementor session)protected PostInsertIdentityPersistergetPersister()SerializableperformInsert(String insertSQL, SharedSessionContractImplementor session, Binder binder)Perform the indicated insert SQL statement and determine the identifier value generated.protected abstract PreparedStatementprepare(String insertSQL, SharedSessionContractImplementor session)protected voidreleaseStatement(PreparedStatement insert, SharedSessionContractImplementor session)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
prepareIdentifierGeneratingInsert
-
-
-
-
构造器详细资料
-
AbstractReturningDelegate
public AbstractReturningDelegate(PostInsertIdentityPersister persister)
-
-
方法详细资料
-
performInsert
public final Serializable performInsert(String insertSQL, SharedSessionContractImplementor session, Binder binder)
从接口复制的说明:InsertGeneratedIdentifierDelegatePerform the indicated insert SQL statement and determine the identifier value generated.- 指定者:
performInsert在接口中InsertGeneratedIdentifierDelegate- 参数:
insertSQL- The INSERT statement stringsession- The session in which we are operatingbinder- The param binder- 返回:
- The generated identifier value.
-
getPersister
protected PostInsertIdentityPersister getPersister()
-
prepare
protected abstract PreparedStatement prepare(String insertSQL, SharedSessionContractImplementor session) throws SQLException
- 抛出:
SQLException
-
executeAndExtract
protected abstract Serializable executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session) throws SQLException
- 抛出:
SQLException
-
releaseStatement
protected void releaseStatement(PreparedStatement insert, SharedSessionContractImplementor session)
-
-