站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

InsertGeneratedIdentifierDelegate (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.id.insert
Interface InsertGeneratedIdentifierDelegate

All Known Implementing Classes:
AbstractReturningDelegate, AbstractSelectingDelegate, IdentityGenerator.BasicDelegate, IdentityGenerator.GetGeneratedKeysDelegate, IdentityGenerator.InsertSelectDelegate, SelectGenerator.SelectGeneratorDelegate

public interface InsertGeneratedIdentifierDelegate

Responsible for handling delegation relating to variants in how insert-generated-identifier generator strategies dictate processing:

Author:
Steve Ebersole

Method Summary
 Serializable performInsert(String insertSQL, SessionImplementor session, Binder binder)
          Perform the indicated insert SQL statement and determine the identifier value generated.
 IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
          Build a Insert specific to the delegate's mode of handling generated key values.
 

Method Detail

prepareIdentifierGeneratingInsert

public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
Build a Insert specific to the delegate's mode of handling generated key values.

Returns:
The insert object.

performInsert

public Serializable performInsert(String insertSQL,
                                  SessionImplementor session,
                                  Binder binder)
Perform the indicated insert SQL statement and determine the identifier value generated.

Parameters:
insertSQL -
session -
binder -
Returns:
The generated identifier value.