|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ehsbe.commons.util.CrudEvent<E>
E - the id of the changed objectspublic class CrudEvent<E>
A Create/Update/Delete event.
| Nested Class Summary | |
|---|---|
static class |
CrudEvent.CrudType
The type of entity change |
| Constructor Summary | |
|---|---|
CrudEvent(Object entity,
CrudEvent.CrudType type,
E... id)
Convinience Constructor. |
|
CrudEvent(String classname,
CrudEvent.CrudType type,
E... id)
Default Constructor. |
|
| Method Summary | |
|---|---|
void |
addId(E id)
Add another CRUD object id to this event. |
String |
getClassname()
Get the class name of the crud objects changed. |
ArrayList<E> |
getIds()
Get a list of crud object ids for this event. |
CrudEvent.CrudType |
getType()
Get the type of the event. |
boolean |
isStructureChanged()
Check, whether the structure of the referred entity has been dramatically changed, so that all its children/[old] parent should be revalidated. |
void |
setStructureChanged(boolean structureChanged)
Set, whether the structure from the referred entity has drastically changed (i.e. a simple parent and children check is not enough to re-align the structure). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CrudEvent(String classname,
CrudEvent.CrudType type,
E... id)
classname - the class name of the CRUD objectid - the id of the CRUD object. Might be null.type - the CRUD type
public CrudEvent(Object entity,
CrudEvent.CrudType type,
E... id)
entity - the CRUD objectid - the id of the CRUD object. Might be null.type - the CRUD typeObject.getClass()| Method Detail |
|---|
public void addId(E id)
id - id of the crud objectpublic String getClassname()
null value.public CrudEvent.CrudType getType()
public ArrayList<E> getIds()
public String toString()
toString in class Objectpublic boolean isStructureChanged()
true if the complete subtree should be revalidated.public void setStructureChanged(boolean structureChanged)
structureChanged - structureChanged to set.
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||