|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for DomainObject observers. Implementations of
DomainObjectObserver should implement the equals
method
meaningfully so that multiple copies of the same observer are not added by
multiple domain objects that wrap the same data object.
Field Summary | |
static String |
versionId
|
Method Summary | |
void |
add(DomainObject dobj,
String name,
DataObject dataObject)
Callback for an add operation on the observed DomainObject |
void |
afterDelete(DomainObject dobj)
Callback after a delete operation on the observed DomainObject |
void |
afterSave(DomainObject dobj)
Callback after a save operation on the observed DomainObject |
void |
beforeDelete(DomainObject dobj)
Callback before a delete operation on the observed DomainObject |
void |
beforeSave(DomainObject dobj)
Callback before a save operation on the observed DomainObject |
void |
clear(DomainObject dobj,
String name)
Callback for a clear operation on the observed DomainObject |
void |
remove(DomainObject dobj,
String name,
DataObject dataObject)
Callback for a remove operation on the observed DomainObject |
void |
set(DomainObject dobj,
String name,
Object old_value,
Object new_value)
Callback for a set operation on the observed DomainObject |
Field Detail |
public static final String versionId
Method Detail |
public void set(DomainObject dobj, String name, Object old_value, Object new_value)
dobj
- the observed domain objectname
- the name of the parameter being setold_value
- the old value of the parameter being setnew_value
- the old value of the parameter being setpublic void add(DomainObject dobj, String name, DataObject dataObject)
dobj
- the observed domain objectname
- the name of the parameter being setpublic void remove(DomainObject dobj, String name, DataObject dataObject)
dobj
- the observed domain objectname
- the name of the parameter being setpublic void clear(DomainObject dobj, String name)
dobj
- the observed domain objectname
- the name of the parameter being setpublic void beforeSave(DomainObject dobj) throws PersistenceException
dobj
- the observed domain object
PersistenceException
public void afterSave(DomainObject dobj) throws PersistenceException
dobj
- the observed domain object
PersistenceException
public void beforeDelete(DomainObject dobj) throws PersistenceException
dobj
- the observed domain object
PersistenceException
public void afterDelete(DomainObject dobj) throws PersistenceException
dobj
- the observed domain object
PersistenceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |