Class EntityCommitEvent<T extends PersistenceEntity>
- java.lang.Object
-
- com.cmobilecom.af.model.module.event.ModuleEvent
-
- com.cmobilecom.af.model.module.event.EntityCommitEvent<T>
-
public class EntityCommitEvent<T extends PersistenceEntity> extends ModuleEvent
EntityCommitEvent is a ModuleEvent indicating a list of entities have been created/deleted/changed in persistence. The transaction has been committed.- Since:
- 4.2
-
-
Constructor Summary
Constructors Constructor Description EntityCommitEvent(PersistenceDataBackingBean<T> backingBean, java.util.List<T> entities, ActionDescriptor actionDescriptor)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionDescriptor
getActionDescriptor()
Get the ActionDescriptor of the event.PersistenceDataBackingBean<T>
getBackingBean()
Get the backing bean of the entities oommitted.java.util.List
getEntities()
Get the list of entities affected.void
setActionDescriptor(ActionDescriptor actionDescriptor)
Set the ActionDescriptor of the event.void
setEntities(java.util.List entities)
Set the list of entities affected.-
Methods inherited from class com.cmobilecom.af.model.module.event.ModuleEvent
getSource, setSource
-
-
-
-
Constructor Detail
-
EntityCommitEvent
public EntityCommitEvent(PersistenceDataBackingBean<T> backingBean, java.util.List<T> entities, ActionDescriptor actionDescriptor)
Constructor- Parameters:
backingBean
- event sourceentities
- a list of entities affected by the transactionactionDescriptor
- the ActionDescriptor of the transaction
-
-
Method Detail
-
getEntities
public java.util.List getEntities()
Get the list of entities affected.- Returns:
- entities
-
setEntities
public void setEntities(java.util.List entities)
Set the list of entities affected.- Parameters:
entities
- a list of entities
-
getActionDescriptor
public ActionDescriptor getActionDescriptor()
Get the ActionDescriptor of the event.- Returns:
- actionDescriptor
-
setActionDescriptor
public void setActionDescriptor(ActionDescriptor actionDescriptor)
Set the ActionDescriptor of the event.- Parameters:
actionDescriptor
- the ActionDescriptor to set
-
getBackingBean
public PersistenceDataBackingBean<T> getBackingBean()
Get the backing bean of the entities oommitted.- Returns:
- entity or entity list bean
- Since:
- 5.13
-
-