ch.elca.el4j.services.persistence.hibernate
Class TriggerAssignedIdentityGenerator.Delegate

java.lang.Object
  extended by org.hibernate.id.insert.AbstractReturningDelegate
      extended by ch.elca.el4j.services.persistence.hibernate.TriggerAssignedIdentityGenerator.Delegate
All Implemented Interfaces:
InsertGeneratedIdentifierDelegate
Enclosing class:
TriggerAssignedIdentityGenerator

public static class TriggerAssignedIdentityGenerator.Delegate
extends AbstractReturningDelegate

Delegate for the returned generated value.


Constructor Summary
TriggerAssignedIdentityGenerator.Delegate(PostInsertIdentityPersister persister, Dialect dialect)
           
 
Method Summary
protected  Serializable executeAndExtract(PreparedStatement insert)
          
protected  PreparedStatement prepare(String insertSQL, SessionImplementor session)
          
 IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
          Removes the comments for insertion.
 
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
 

Constructor Detail

TriggerAssignedIdentityGenerator.Delegate

public TriggerAssignedIdentityGenerator.Delegate(PostInsertIdentityPersister persister,
                                                 Dialect dialect)
Parameters:
persister - Is the post insert identity persister
dialect - Is the dialect of the database.
Method Detail

prepareIdentifierGeneratingInsert

public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
Removes the comments for insertion.


prepare

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

Specified by:
prepare in class AbstractReturningDelegate
Throws:
SQLException

executeAndExtract

protected Serializable executeAndExtract(PreparedStatement insert)
                                  throws SQLException

Specified by:
executeAndExtract in class AbstractReturningDelegate
Throws:
SQLException


Copyright © 2005-2011 ELCA. All Rights Reserved.