站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

AbstractReassociateEventListener (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.event.def
Class AbstractReassociateEventListener

java.lang.Object
  extended byorg.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.