程序包 org.hibernate.id
类 SelectGenerator.SelectGeneratorDelegate
- java.lang.Object
-
- org.hibernate.id.insert.AbstractSelectingDelegate
-
- org.hibernate.id.SelectGenerator.SelectGeneratorDelegate
-
- 所有已实现的接口:
InsertGeneratedIdentifierDelegate
- 封闭类:
- SelectGenerator
public static class SelectGenerator.SelectGeneratorDelegate extends AbstractSelectingDelegate implements InsertGeneratedIdentifierDelegate
The delegate for the select generation strategy.
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidbindParameters(SharedSessionContractImplementor session, PreparedStatement ps, Object entity)Bind any required parameter values into the SQL commandAbstractSelectingDelegate.getSelectSQL().protected SerializablegetResult(SharedSessionContractImplementor session, ResultSet rs, Object entity)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
performInsert
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
performInsert
-
-
-
-
方法详细资料
-
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
-
bindParameters
protected void bindParameters(SharedSessionContractImplementor session, PreparedStatement ps, Object entity) throws SQLException
从类复制的说明:AbstractSelectingDelegateBind any required parameter values into the SQL commandAbstractSelectingDelegate.getSelectSQL().- 覆盖:
bindParameters在类中AbstractSelectingDelegate- 参数:
session- The sessionps- The preparedSQLcommandentity- The entity being saved.- 抛出:
SQLException
-
getResult
protected Serializable getResult(SharedSessionContractImplementor session, ResultSet rs, Object entity) 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.entity- The entity being saved.- 返回:
- The generated identifier
- 抛出:
SQLException
-
-