org.hibernate.event.def
Class AbstractReassociateEventListener
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractReassociateEventListener
public AbstractReassociateEventListener()
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-associationobject
- The entity to be associatedid
- 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.