public abstract class AbstractCollectionEvent extends AbstractEvent
Constructor and Description |
---|
AbstractCollectionEvent(CollectionPersister collectionPersister,
PersistentCollection collection,
EventSource source,
java.lang.Object affectedOwner,
java.io.Serializable affectedOwnerId)
Constructs an AbstractCollectionEvent object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAffectedOwnerEntityName()
Get the entity name for the collection owner entity that is affected by this event.
|
protected static java.lang.String |
getAffectedOwnerEntityName(CollectionPersister collectionPersister,
java.lang.Object affectedOwner,
EventSource source) |
java.io.Serializable |
getAffectedOwnerIdOrNull()
Get the ID for the collection owner entity that is affected by this event.
|
java.lang.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 java.io.Serializable |
getLoadedOwnerIdOrNull(PersistentCollection collection,
EventSource source) |
protected static java.lang.Object |
getLoadedOwnerOrNull(PersistentCollection collection,
EventSource source) |
protected static java.io.Serializable |
getOwnerIdOrNull(java.lang.Object owner,
EventSource source) |
getSession
public AbstractCollectionEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source, java.lang.Object affectedOwner, java.io.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 java.lang.Object getLoadedOwnerOrNull(PersistentCollection collection, EventSource source)
protected static java.io.Serializable getLoadedOwnerIdOrNull(PersistentCollection collection, EventSource source)
protected static java.io.Serializable getOwnerIdOrNull(java.lang.Object owner, EventSource source)
protected static java.lang.String getAffectedOwnerEntityName(CollectionPersister collectionPersister, java.lang.Object affectedOwner, EventSource source)
public PersistentCollection getCollection()
public java.lang.Object getAffectedOwnerOrNull()
public java.io.Serializable getAffectedOwnerIdOrNull()
public java.lang.String getAffectedOwnerEntityName()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.