程序包 org.hibernate.id
类 IdentityGenerator.BasicDelegate
- java.lang.Object
-
- org.hibernate.id.insert.AbstractSelectingDelegate
-
- org.hibernate.id.IdentityGenerator.BasicDelegate
-
- 所有已实现的接口:
InsertGeneratedIdentifierDelegate
- 封闭类:
- IdentityGenerator
public static class IdentityGenerator.BasicDelegate extends AbstractSelectingDelegate implements InsertGeneratedIdentifierDelegate
Delegate for dealing with IDENTITY columns where the dialect requires an additional command execution to retrieve the generated IDENTITY value
-
-
构造器概要
构造器 构造器 说明 BasicDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected SerializablegetResult(SharedSessionContractImplementor session, ResultSet rs, Object object)Extract the generated key value from the given result set.protected StringgetSelectSQL()Get the SQL statement to be used to retrieve generated key values.IdentifierGeneratingInsertprepareIdentifierGeneratingInsert()Build aInsertspecific to the delegate's mode of handling generated key values.-
从类继承的方法 org.hibernate.id.insert.AbstractSelectingDelegate
bindParameters, performInsert
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
performInsert
-
-
-
-
构造器详细资料
-
BasicDelegate
public BasicDelegate(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.
-
getSelectSQL
protected String getSelectSQL()
从类复制的说明:AbstractSelectingDelegateGet the SQL statement to be used to retrieve generated key values.- 指定者:
getSelectSQL在类中AbstractSelectingDelegate- 返回:
- The SQL command string
-
getResult
protected Serializable getResult(SharedSessionContractImplementor session, ResultSet rs, Object object) throws SQLException
从类复制的说明:AbstractSelectingDelegateExtract the generated key value from the given result set.- 指定者:
getResult在类中AbstractSelectingDelegate- 参数:
session- The sessionrs- The result set containing the generated primay key values.object- The entity being saved.- 返回:
- The generated identifier
- 抛出:
SQLException
-
-