## org.hibernate.id
Class IdentityGenerator.GetGeneratedKeysDelegate

    java.lang.Object
      org.hibernate.id.insert.AbstractReturningDelegate
          org.hibernate.id.IdentityGenerator.GetGeneratedKeysDelegate

All Implemented Interfaces:
  InsertGeneratedIdentifierDelegate

Enclosing class:
  IdentityGenerator

    public static class IdentityGenerator.GetGeneratedKeysDelegate

extends AbstractReturningDelegate
implements InsertGeneratedIdentifierDelegate

Delegate for dealing with IDENTITY columns using JDBC3 getGeneratedKeys

Constructor Summary
`IdentityGenerator.GetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)`

Method Summary
`Serializable` `executeAndExtract(PreparedStatement insert)`
`protected PreparedStatement` `prepare(String insertSQL, SessionImplementor session)`
`IdentifierGeneratingInsert` `prepareIdentifierGeneratingInsert()` Build a `Insert` specific to the delegate's mode of handling generated key values.

Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
`getPersister, performInsert, releaseStatement`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
`performInsert`

Constructor Detail

### IdentityGenerator.GetGeneratedKeysDelegate

    public IdentityGenerator.GetGeneratedKeysDelegate(PostInsertIdentityPersister persister,
                                                      Dialect dialect)

Method Detail

### prepareIdentifierGeneratingInsert

    public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()

  Description copied from interface: `InsertGeneratedIdentifierDelegate`
  Build a `Insert` specific to the delegate's mode of handling generated key values.

  Specified by:
    `prepareIdentifierGeneratingInsert` in interface `InsertGeneratedIdentifierDelegate`
  Returns:
    The insert object.

### prepare

    protected PreparedStatement prepare(String insertSQL,
                                        SessionImplementor session)
                                 throws SQLException

  Specified by:
    `prepare` in class `AbstractReturningDelegate`
  Throws:
    `SQLException`

### executeAndExtract

    public Serializable executeAndExtract(PreparedStatement insert)
                                   throws SQLException

  Specified by:
    `executeAndExtract` in class `AbstractReturningDelegate`
  Throws:
    `SQLException`

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.