public abstract class AbstractCollectionEvent extends AbstractEvent
Constructor and Description |
---|
AbstractCollectionEvent(CollectionPersister collectionPersister,
PersistentCollection collection,
EventSource source,
Object affectedOwner,
Serializable affectedOwnerId)
Constructs an AbstractCollectionEvent object.
|
Modifier and Type | Method and Description |
---|---|
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) |
getSession
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 unavailableprotected 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()
Copyright © 2017 JBoss by Red Hat. All rights reserved.