org.hibernate.id
Class IdentityGenerator.InsertSelectDelegate
java.lang.Object
   org.hibernate.id.insert.AbstractReturningDelegate
org.hibernate.id.insert.AbstractReturningDelegate
       org.hibernate.id.IdentityGenerator.InsertSelectDelegate
org.hibernate.id.IdentityGenerator.InsertSelectDelegate
- All Implemented Interfaces: 
- InsertGeneratedIdentifierDelegate
- Enclosing class:
- IdentityGenerator
- public static class IdentityGenerator.InsertSelectDelegate 
- extends AbstractReturningDelegate- implements 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 | 
 
 
IdentityGenerator.InsertSelectDelegate
public IdentityGenerator.InsertSelectDelegate(PostInsertIdentityPersister persister,
                                              Dialect dialect)
prepareIdentifierGeneratingInsert
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
- Description copied from interface: InsertGeneratedIdentifierDelegate
- Build a Insertspecific to the delegate's mode
 of handling generated key values.
 
- 
- Specified by:
- prepareIdentifierGeneratingInsertin interface- InsertGeneratedIdentifierDelegate
 
- 
- Returns:
- The insert object.
 
prepare
protected PreparedStatement prepare(String insertSQL,
                                    SessionImplementor session)
                             throws SQLException
- 
- Specified by:
- preparein class- AbstractReturningDelegate
 
- 
- Throws:
- SQLException
 
executeAndExtract
public Serializable executeAndExtract(PreparedStatement insert)
                               throws SQLException
- 
- Specified by:
- executeAndExtractin class- AbstractReturningDelegate
 
- 
- Throws:
- SQLException
 
determineGeneratedIdentifier
public Serializable determineGeneratedIdentifier(SessionImplementor session,
                                                 Object entity)
- 
 
- 
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.