org.hibernate.id
Class IdentityGenerator.InsertSelectDelegate

java.lang.Object
org.hibernate.id.insert.AbstractReturningDelegate
org.hibernate.id.IdentityGenerator.InsertSelectDelegate
- All Implemented Interfaces:
- org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
- Enclosing class:
- IdentityGenerator
- public static class IdentityGenerator.InsertSelectDelegate
- extends org.hibernate.id.insert.AbstractReturningDelegate
- implements org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
Delegate for dealing with IDENTITY columns where the dialect supports returning
the generated IDENTITY value directly from the insert statement.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
persister
private final PostInsertIdentityPersister persister
dialect
private final org.hibernate.dialect.Dialect dialect
IdentityGenerator.InsertSelectDelegate
public IdentityGenerator.InsertSelectDelegate(PostInsertIdentityPersister persister,
org.hibernate.dialect.Dialect dialect)
prepareIdentifierGeneratingInsert
public org.hibernate.id.insert.IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
- Description copied from interface:
org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
- Build a org.hibernate.sql.Insert specific to the delegate's mode
of handling generated key values.
- Specified by:
prepareIdentifierGeneratingInsert in interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
prepare
protected java.sql.PreparedStatement prepare(java.lang.String insertSQL,
org.hibernate.engine.SessionImplementor session)
throws java.sql.SQLException
executeAndExtract
public java.io.Serializable executeAndExtract(java.sql.PreparedStatement insert)
throws java.sql.SQLException
determineGeneratedIdentifier
public java.io.Serializable determineGeneratedIdentifier(org.hibernate.engine.SessionImplementor session,
java.lang.Object entity)