|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.event.spi.AbstractEvent org.hibernate.event.spi.AbstractCollectionEvent
public abstract class AbstractCollectionEvent
Defines a base class for events involving collections.
Constructor Summary | |
---|---|
AbstractCollectionEvent(CollectionPersister collectionPersister,
PersistentCollection collection,
EventSource source,
Object affectedOwner,
Serializable affectedOwnerId)
Constructs an AbstractCollectionEvent object. |
Method Summary | |
---|---|
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)
|
Serializable |
getAffectedOwnerIdOrNull()
Get the ID for the collection owner entity that is affected by this event. |
Object |
getAffectedOwnerOrNull()
Get the collection owner entity that is affected by this event. |
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)
|
Methods inherited from class org.hibernate.event.spi.AbstractEvent |
---|
getSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCollectionEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source, Object affectedOwner, Serializable affectedOwnerId)
collection
- - the collectionsource
- - the Session sourceaffectedOwner
- - the owner that is affected by this event;
can be null if unavailableaffectedOwnerId
- - 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 unavailableMethod Detail |
---|
protected static CollectionPersister getLoadedCollectionPersister(PersistentCollection collection, EventSource source)
protected static Object getLoadedOwnerOrNull(PersistentCollection collection, EventSource source)
protected static Serializable getLoadedOwnerIdOrNull(PersistentCollection collection, EventSource source)
protected static Serializable getOwnerIdOrNull(Object owner, EventSource source)
protected static String getAffectedOwnerEntityName(CollectionPersister collectionPersister, Object affectedOwner, EventSource source)
public PersistentCollection getCollection()
public Object getAffectedOwnerOrNull()
public Serializable getAffectedOwnerIdOrNull()
public String getAffectedOwnerEntityName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |