org.hibernate.event.def
Class AbstractReassociateEventListener

java.lang.Object
  extended by org.hibernate.event.def.AbstractReassociateEventListener
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractLockUpgradeEventListener, AbstractSaveEventListener

public class AbstractReassociateEventListener
extends Object
implements Serializable

A convenience base class for listeners that respond to requests to reassociate an entity to a session ( such as through lock() or update() ).

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
AbstractReassociateEventListener()
           
 
Method Summary
protected  EntityEntry reassociate(AbstractEvent event, Object object, Serializable id, EntityPersister persister)
          Associates a given entity (either transient or associated with another session) to the given session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReassociateEventListener

public AbstractReassociateEventListener()
Method Detail

reassociate

protected final EntityEntry reassociate(AbstractEvent event,
                                        Object object,
                                        Serializable id,
                                        EntityPersister persister)
Associates a given entity (either transient or associated with another session) to the given session.

Parameters:
event - The event triggering the re-association
object - The entity to be associated
id - The id of the entity.
persister - The entity's persister instance.
Returns:
An EntityEntry representing the entity within this session.


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.