|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CRUDLifecycle<M>
Common interface for component CRUD life cycle methods. In order to provide a consistent event management and broadcasting to create, update and delete the model.
| Field Summary | |
|---|---|
static String |
AFTER_CREATE_EVENT
The CRUDLifecycleEvent type for the "component after create" |
static String |
AFTER_DELETE_EVENT
The CRUDLifecycleEvent type for the "component after delete" |
static String |
AFTER_UPDATE_EVENT
The CRUDLifecycleEvent type for the "component after update" |
static String |
BEFORE_CREATE_EVENT
The CRUDLifecycleEvent type for the "component before create" |
static String |
BEFORE_DELETE_EVENT
The CRUDLifecycleEvent type for the "component before delete" |
static String |
BEFORE_UPDATE_EVENT
The CRUDLifecycleEvent type for the "component before update" |
static String |
CREATE_EVENT
The CRUDLifecycleEvent type for the "component create" event. |
static String |
DELETE_EVENT
The CRUDLifecycleEvent type for the "component delete" event. |
static String |
UPDATE_EVENT
The CRUDLifecycleEvent type for the "component update" event. |
| Method Summary | |
|---|---|
void |
addCRUDLifecycleListener(CRUDLifecycleListener<M> listener)
Adds a CRUDLifecycleEvent listener to this component. |
CRUDLifecycleListener<M>[] |
findCRUDLifecycleListeners()
Gets the lifecycle listeners associated with this lifecycle. |
void |
removeCRUDLifecycleListener(CRUDLifecycleListener<M> listener)
Removes a CRUDLifecycleEvent listener from this component. |
| Field Detail |
|---|
static final String CREATE_EVENT
static final String BEFORE_CREATE_EVENT
static final String AFTER_CREATE_EVENT
static final String UPDATE_EVENT
static final String BEFORE_UPDATE_EVENT
static final String AFTER_UPDATE_EVENT
static final String DELETE_EVENT
static final String BEFORE_DELETE_EVENT
static final String AFTER_DELETE_EVENT
| Method Detail |
|---|
CRUDLifecycleListener<M>[] findCRUDLifecycleListeners()
void removeCRUDLifecycleListener(CRUDLifecycleListener<M> listener)
listener - The listener to be removedvoid addCRUDLifecycleListener(CRUDLifecycleListener<M> listener)
listener - The listener to to be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||