public interface

InsertGeneratedIdentifierDelegate

org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
Known Indirect Subclasses

Class Overview

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

  • building the sql insert statement
  • determination of the generated identifier value

Summary

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

Public Methods

public abstract Serializable performInsert (String insertSQL, SessionImplementor session, Binder binder)

Perform the indicated insert SQL statement and determine the identifier value generated.

Parameters
insertSQL The INSERT statement string
session The session in which we are operating
binder The param binder
Returns
  • The generated identifier value.

public abstract IdentifierGeneratingInsert prepareIdentifierGeneratingInsert ()

Build a Insert specific to the delegate's mode of handling generated key values.

Returns
  • The insert object.