org.hibernate.envers.entities.mapper
Class PersistentCollectionChangeData

java.lang.Object
  extended by org.hibernate.envers.entities.mapper.PersistentCollectionChangeData

public class PersistentCollectionChangeData
extends Object

Data describing the change of a single object in a persisten collection (when the object was added, removed or modified in the collection).

Author:
Adam Warski (adam at warski dot org)

Constructor Summary
PersistentCollectionChangeData(String entityName, Map<String,Object> data, Object changedElement)
           
 
Method Summary
 Object getChangedElement()
          For use by bi-directional associations.
 Map<String,Object> getData()
           
 String getEntityName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentCollectionChangeData

public PersistentCollectionChangeData(String entityName,
                                      Map<String,Object> data,
                                      Object changedElement)
Method Detail

getEntityName

public String getEntityName()
Returns:
Name of the (middle) entity that holds the collection data.

getData

public Map<String,Object> getData()

getChangedElement

public Object getChangedElement()
For use by bi-directional associations.

Returns:
The affected element, which was changed (added, removed, modified) in the collection.


Copyright © 2008 Hibernate.org. All Rights Reserved.