com.atlassian.crowd.util.persistence.hibernate.batch.operation
Class MergeOperation

java.lang.Object
  extended by com.atlassian.crowd.util.persistence.hibernate.batch.operation.MergeOperation
All Implemented Interfaces:
HibernateOperation

public class MergeOperation
extends Object
implements HibernateOperation

Properly handles TransactionGroups. NOTE: don't use merge for entities without single IDs.


Constructor Summary
MergeOperation()
           
 
Method Summary
 void performOperation(org.hibernate.Session session, Object object)
          Perform a single Hibernate operation on an object given a Hiberante session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeOperation

public MergeOperation()
Method Detail

performOperation

public void performOperation(org.hibernate.Session session,
                             Object object)
                      throws org.hibernate.HibernateException
Description copied from interface: HibernateOperation
Perform a single Hibernate operation on an object given a Hiberante session.

Specified by:
performOperation in interface HibernateOperation
Parameters:
session - Hibernate session prebound to an active transaction.
object - perform the operation on this persistable object.
Throws:
org.hibernate.HibernateException - a Hibernate error has occured while attempting to perform the operation.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.