|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A "Helper" is an object that is related to a particular persistent object, containing methods and logic that are connected logically to the persistent object itself. It also receives events whenever the persistent object is updated, read, etc
| Method Summary | |
void |
afterAdd(Persistent current)Called after the Add operation is completed successfully |
void |
afterDelete(Persistent current)Called after the Delete operation is performed |
void |
afterQuery(Persistent current)Called after a query operation |
void |
afterSetField(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)Called after a field is changed, assuming the change was allowed (e.g. |
void |
afterUpdate(Persistent current)Called after the Update operation is performed |
void |
beforeAdd(Persistent current)Called before the Add operation is performed |
void |
beforeClear(Persistent current)Called before the Clear operation is performed |
void |
beforeDelete(Persistent current)Called before the Delete operation is performed |
void |
beforeQuery(Persistent current)Called before the query operation is performed |
void |
beforeSetField(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)Called before each access to set the field value of a Persistent |
void |
beforeUpdate(Persistent current)Called before the Update operation is performed |
void |
setPersistent(Persistent current)Called when the helper is first instantiated |
| Method Detail |
public void setPersistent(Persistent current)
public void beforeAdd(Persistent current)
current - The Persistent object before the add operation. Fields such as auto-incremented keys will not yet have their values assigned.public void afterAdd(Persistent current)
current - The Persistent object after the add operation. Fields such as auto-incremented keys will have their values assigned properlypublic void beforeDelete(Persistent current)
current - The Persistent object about to be deletedpublic void beforeUpdate(Persistent current)
current - The Persistent object before the updatepublic void afterUpdate(Persistent current)
current - The Persistent object that has just been updatedpublic void afterDelete(Persistent current)
current - The Persistent object which has just been deletedpublic void beforeClear(Persistent current)
current - The Persistent object before it is cleared
public void beforeSetField(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
fieldName - The field name whose value is being alteredoldValue - The field value before the changed is applied
public void afterSetField(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
fieldName - The field name that was changedoldValue - The field value before the changenewValue - The updated field valuepublic void beforeQuery(Persistent current)
current - The Persistent object before the query - contains the constraint values that will be used to perform the query itselfpublic void afterQuery(Persistent current)
current - The Persistent object after the query - essentially identical to before
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||