public static class

IdentityGenerator.InsertSelectDelegate

extends AbstractReturningDelegate
implements InsertGeneratedIdentifierDelegate
java.lang.Object
   ↳ org.hibernate.id.insert.AbstractReturningDelegate
     ↳ org.hibernate.id.IdentityGenerator.InsertSelectDelegate

Class Overview

Delegate for dealing with IDENTITY columns where the dialect supports returning the generated IDENTITY value directly from the insert statement.

Summary

Public Constructors
IdentityGenerator.InsertSelectDelegate(PostInsertIdentityPersister persister, Dialect dialect)
Public Methods
Serializable determineGeneratedIdentifier(SessionImplementor session, Object entity)
Serializable executeAndExtract(PreparedStatement insert)
IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
Build a Insert specific to the delegate's mode of handling generated key values.
Protected Methods
PreparedStatement prepare(String insertSQL, SessionImplementor session)
[Expand]
Inherited Methods
From class org.hibernate.id.insert.AbstractReturningDelegate
From class java.lang.Object
From interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate

Public Constructors

public IdentityGenerator.InsertSelectDelegate (PostInsertIdentityPersister persister, Dialect dialect)

Public Methods

public Serializable determineGeneratedIdentifier (SessionImplementor session, Object entity)

public Serializable executeAndExtract (PreparedStatement insert)

Throws
SQLException

public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert ()

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

Returns
  • The insert object.

Protected Methods

protected PreparedStatement prepare (String insertSQL, SessionImplementor session)

Throws
SQLException