| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final String | |
| private final Serializable | |
| private final PersistentCollection |
| Access | Constructor and Description |
|---|---|
| public | AbstractCollectionEvent(CollectionPersister collectionPersister, PersistentCollection
- the collection collection, EventSource - the Session source source, Object - the owner that is affected by this event;
can be null if unavailable affectedOwner, Serializable - 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 affectedOwnerId)Constructs an AbstractCollectionEvent object. |
| Modifier and Type | Method and Description |
|---|---|
| protected static String | getAffectedOwnerEntityName(CollectionPersister collectionPersister, Object affectedOwner, EventSource source)
|
| public String | Returns: the entity name; if the owner is not in the PersistenceContext, the returned value may be a superclass name, instead of the actual class nameGet the entity name for the collection owner entity that is affected by this event. |
| public Serializable | Returns: the affected owner ID; returns null if the ID cannot be obtained from the collection's loaded key (e.g., a property-ref is used for the collection and does not include the entity's ID)Get the ID for the collection owner entity that is affected by this event. |
| public Object | Returns: the affected owner; returns null if the entity is not in the persistence context (e.g., because the collection from a detached entity was moved to a new owner)Get the collection owner entity that is affected by this event. |
| public PersistentCollection | |
| protected static CollectionPersister | |
| protected static Serializable | |
| protected static Object | |
| protected static Serializable |
| affectedOwner | back to summary |
|---|---|
| private final Object affectedOwner | |
| affectedOwnerEntityName | back to summary |
|---|---|
| private final String affectedOwnerEntityName | |
| affectedOwnerId | back to summary |
|---|---|
| private final Serializable affectedOwnerId | |
| collection | back to summary |
|---|---|
| private final PersistentCollection collection | |
| AbstractCollectionEvent | back to summary |
|---|---|
| public AbstractCollectionEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source, Object affectedOwner, Serializable affectedOwnerId) Constructs an AbstractCollectionEvent object.
| |
| getAffectedOwnerEntityName | back to summary |
|---|---|
| protected static String getAffectedOwnerEntityName(CollectionPersister collectionPersister, Object affectedOwner, EventSource source) | |
| getAffectedOwnerEntityName | back to summary |
|---|---|
| public String getAffectedOwnerEntityName() Get the entity name for the collection owner entity that is affected by this event.
| |
| getAffectedOwnerIdOrNull | back to summary |
|---|---|
| public Serializable getAffectedOwnerIdOrNull() Get the ID for the collection owner entity that is affected by this event.
| |
| getAffectedOwnerOrNull | back to summary |
|---|---|
| public Object getAffectedOwnerOrNull() Get the collection owner entity that is affected by this event.
| |
| getCollection | back to summary |
|---|---|
| public PersistentCollection getCollection() | |
| getLoadedCollectionPersister | back to summary |
|---|---|
| protected static CollectionPersister getLoadedCollectionPersister(PersistentCollection collection, EventSource source) | |
| getLoadedOwnerIdOrNull | back to summary |
|---|---|
| protected static Serializable getLoadedOwnerIdOrNull(PersistentCollection collection, EventSource source) | |
| getLoadedOwnerOrNull | back to summary |
|---|---|
| protected static Object getLoadedOwnerOrNull(PersistentCollection collection, EventSource source) | |
| getOwnerIdOrNull | back to summary |
|---|---|
| protected static Serializable getOwnerIdOrNull(Object owner, EventSource source) | |