lumis.portal.event.persistence
Class PostUpdateEvent
java.lang.Object
lumis.portal.event.AbstractPortalEvent
lumis.portal.event.AbstractTransactionalPortalEvent
lumis.portal.event.persistence.PersistenceEvent
lumis.portal.event.persistence.PostUpdateEvent
- All Implemented Interfaces:
- IPortalEvent
@StableMinor(version="6.1",
sinceVersion="4.2")
public class PostUpdateEvent
- extends PersistenceEvent
Event raised after the update of an entity in persistence.
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.
- Since:
- 4.1.0
Method Summary |
java.util.List<?> |
getEntities()
Returns the entities affected by this persistence event. |
java.util.List<?> |
getOldEntities()
Returns the entity state before the update. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostUpdateEvent
public PostUpdateEvent(SessionConfig sessionConfig,
java.lang.Class<?> entityClass,
java.lang.Object oldEntity,
java.lang.Object entity,
ITransaction transaction)
PostUpdateEvent
public PostUpdateEvent(SessionConfig sessionConfig,
java.lang.Class<?> entityClass,
java.util.List<?> oldEntities,
java.util.List<?> entities,
ITransaction transaction)
getOldEntities
public java.util.List<?> getOldEntities()
- Returns the entity state before the update. Each entity in the list
returned corresponds to the entity in the same index of
the list returned by
getEntities()
.
Note that this information may not be available in the event, depending
on who generated the event. In this case, this method will return null.
- Returns:
- the entity state before the update.
- Since:
- 4.1.0
getEntities
public java.util.List<?> getEntities()
- Description copied from class:
PersistenceEvent
- Returns the entities affected by this persistence event.
- Overrides:
getEntities
in class PersistenceEvent
- Returns:
- the entities.
Lumisportal 6.1.0.111014 - Copyright © 2001-2007, Lumis. All Rights Reserved.