lumis.portal.event.persistence
Class PersistenceEvent
java.lang.Object
lumis.portal.event.AbstractPortalEvent
lumis.portal.event.AbstractTransactionalPortalEvent
lumis.portal.event.persistence.PersistenceEvent
- All Implemented Interfaces:
- IPortalEvent
- Direct Known Subclasses:
- PostAddEvent, PostDeleteEvent, PostLoadEvent, PostUpdateEvent, PreAddEvent, PreDeleteEvent, PreLoadEvent, PreUpdateEvent
public abstract class PersistenceEvent
- extends AbstractTransactionalPortalEvent
Base class for standard persistence events.
The groups for a standard persistence event is defined as being the
class name of the corresponding entity.
- Since:
- 4.1.0
Method Summary |
Collection<?> |
getEntities()
Returns the entities affected by this persistence event. |
boolean |
isBefore()
Indicates if this event was sent before the corresponding operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceEvent
public PersistenceEvent(SessionConfig sessionConfig,
Class<?> entityClass,
Collection<?> entities,
boolean before,
ITransaction transaction)
getEntities
public Collection<?> getEntities()
- Returns the entities affected by this persistence event.
- Returns:
- the entities.
- Since:
- 4.1.0
isBefore
public boolean isBefore()
- Indicates if this event was sent before the corresponding operation.
- Returns:
- true if this event was sent before, or false if this event
was sent after the corresponding operation.
- Since:
- 4.1.0
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.