public static class

IdentityGenerator.GetGeneratedKeysDelegate

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

Class Overview

Delegate for dealing with IDENTITY columns using JDBC3 getGeneratedKeys

Summary

Public Constructors
IdentityGenerator.GetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
Public Methods
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.GetGeneratedKeysDelegate (PostInsertIdentityPersister persister, Dialect dialect)

Public Methods

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