Top Description Methods
org.hibernate.id.insert

public Interface InsertGeneratedIdentifierDelegate

Known Direct Implementers
org.hibernate.dialect.identity.GetGeneratedKeysDelegate, org.hibernate.id.IdentityGenerator.InsertSelectDelegate, org.hibernate.id.IdentityGenerator.BasicDelegate, org.hibernate.id.SelectGenerator.SelectGeneratorDelegate, org.hibernate.id.insert.AbstractReturningDelegate, org.hibernate.id.insert.AbstractSelectingDelegate
Imports
java.io.Serializable, org.hibernate.boot.model.relational.SqlStringGenerationContext, org.hibernate.engine.spi.SharedSessionContractImplementor

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

Method Summary

Modifier and TypeMethod and Description
public Serializable

Returns:

The generated identifier value.
performInsert
(String
The INSERT statement string
insertSQL
,
SharedSessionContractImplementor
The session in which we are operating
session
,
Binder
The param binder
binder
)

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

public default IdentifierGeneratingInsert

Returns:

The insert object.
prepareIdentifierGeneratingInsert
()

Build a org.hibernate.sql.Insert specific to the delegate's mode of handling generated key values.
public default IdentifierGeneratingInsert

Returns:

The insert object.
prepareIdentifierGeneratingInsert
(SqlStringGenerationContext
A context to help generate SQL strings
context
)

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

Method Detail

performInsertback to summary
public Serializable performInsert(String insertSQL, SharedSessionContractImplementor session, Binder binder)

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

Parameters
insertSQL:String

The INSERT statement string

session:SharedSessionContractImplementor

The session in which we are operating

binder:Binder

The param binder

Returns:Serializable

The generated identifier value.

prepareIdentifierGeneratingInsertback to summary
public default IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()

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

Returns:IdentifierGeneratingInsert

The insert object.

Annotations
@Deprecated
prepareIdentifierGeneratingInsertback to summary
public default IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)

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

Parameters
context:SqlStringGenerationContext

A context to help generate SQL strings

Returns:IdentifierGeneratingInsert

The insert object.