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) {
super(source);
this.collection = collection;
this.affectedOwner = affectedOwner;
this.affectedOwnerId = affectedOwnerId;
this.affectedOwnerEntityName =
getAffectedOwnerEntityName( collectionPersister, affectedOwner, source );
}
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
|
| Methods from org.hibernate.event.AbstractEvent: |
|---|
|
getSession |