Package 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
ConstructorsConstructorDescriptionGetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect) -
Method Summary
Modifier and TypeMethodDescriptionexecuteAndExtract(PreparedStatement insert) protected PreparedStatementprepare(String insertSQL, SessionImplementor session) Build aInsertspecific to the delegate's mode of handling generated key values.Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
getPersister, performInsert, releaseStatementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
performInsert
-
Constructor Details
-
GetGeneratedKeysDelegate
-
-
Method Details
-
prepareIdentifierGeneratingInsert
Description copied from interface:InsertGeneratedIdentifierDelegateBuild aInsertspecific to the delegate's mode of handling generated key values.- Specified by:
prepareIdentifierGeneratingInsertin interfaceInsertGeneratedIdentifierDelegate- Returns:
- The insert object.
-
prepare
protected PreparedStatement prepare(String insertSQL, SessionImplementor session) throws SQLException - Specified by:
preparein classAbstractReturningDelegate- Throws:
SQLException
-
executeAndExtract
- Specified by:
executeAndExtractin classAbstractReturningDelegate- Throws:
SQLException
-