Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » event » [javadoc | source]
org.hibernate.event
abstract public class: AbstractCollectionEvent [javadoc | source]
java.lang.Object
   org.hibernate.event.AbstractEvent
      org.hibernate.event.AbstractCollectionEvent

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    InitializeCollectionEvent, PreCollectionRemoveEvent, PreCollectionRecreateEvent, PostCollectionUpdateEvent, PostCollectionRemoveEvent, PreCollectionUpdateEvent, PostCollectionRecreateEvent

Defines a base class for events involving collections.
Constructor:
 public AbstractCollectionEvent(CollectionPersister collectionPersister,
    PersistentCollection collection,
    EventSource source,
    Object affectedOwner,
    Serializable affectedOwnerId) 
    Constructs an AbstractCollectionEvent object.
    Parameters:
    collection - - the collection
    source - - the Session source
    affectedOwner - - the owner that is affected by this event; can be null if unavailable
    affectedOwnerId - - the ID for the owner that is affected by this event; can be null if unavailable that is affected by this event; can be null if unavailable
Method from org.hibernate.event.AbstractCollectionEvent Summary:
getAffectedOwnerEntityName,   getAffectedOwnerEntityName,   getAffectedOwnerIdOrNull,   getAffectedOwnerOrNull,   getCollection,   getLoadedCollectionPersister,   getLoadedOwnerIdOrNull,   getLoadedOwnerOrNull,   getOwnerIdOrNull
Methods from org.hibernate.event.AbstractEvent:
getSession
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.event.AbstractCollectionEvent Detail:
 public String getAffectedOwnerEntityName() 
    Get the entity name for the collection owner entity that is affected by this event.
 protected static String getAffectedOwnerEntityName(CollectionPersister collectionPersister,
    Object affectedOwner,
    EventSource source) 
 public Serializable getAffectedOwnerIdOrNull() 
    Get the ID for the collection owner entity that is affected by this event.
 public Object getAffectedOwnerOrNull() 
    Get the collection owner entity that is affected by this event.
 public PersistentCollection getCollection() 
 protected static CollectionPersister getLoadedCollectionPersister(PersistentCollection collection,
    EventSource source) 
 protected static Serializable getLoadedOwnerIdOrNull(PersistentCollection collection,
    EventSource source) 
 protected static Object getLoadedOwnerOrNull(PersistentCollection collection,
    EventSource source) 
 protected static Serializable getOwnerIdOrNull(Object owner,
    EventSource source)