当前页面: 
在线文档首页 > 
Hibernate 3.2.4 正式版 API 英文文档
AbstractReassociateEventListener (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.event.def
Class AbstractReassociateEventListener
java.lang.Object
   org.hibernate.event.def.AbstractReassociateEventListener
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-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.