@StableMinor(version="12.3", sinceVersion="4.2") public abstract class PersistenceEvent extends AbstractTransactionalPortalEvent
The groups for a standard persistence event is defined as being the class name of the corresponding entity.
Note: A persistence event may have been generated during a JPA entity lifecycle callback. In such situations, JPA limitations (such as the application should not access EntityManager, other entities, or change relations) apply.
Constructor and Description |
---|
PersistenceEvent(SessionConfig sessionConfig,
Class<?> entityClass,
Collection<?> entities,
boolean before,
ITransaction transaction) |
Modifier and Type | Method and Description |
---|---|
Collection<?> |
getEntities()
Returns the entities affected by this persistence event.
|
boolean |
isBefore()
Indicates if this event was sent before the corresponding operation.
|
getSessionConfig, getTransaction
getEventGroups, getOperationType, setEventGroups, setOperationType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public PersistenceEvent(SessionConfig sessionConfig, Class<?> entityClass, Collection<?> entities, boolean before, ITransaction transaction)
public Collection<?> getEntities()
public boolean isBefore()
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.