|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.database.querymanagers.generic.AbstractCallbacks<BeanType>
public abstract class AbstractCallbacks<BeanType>
Abstract convenience class that provides a postive no-op implementation of
all the methods of the Callbacks interface.
Callbacks| Constructor Summary | |
|---|---|
AbstractCallbacks()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCallbacks()
| Method Detail |
|---|
public boolean beforeValidate(BeanType object)
CallbacksValidationContext.validate(Validated).
beforeValidate in interface Callbacks<BeanType>object - the bean instance that will be validated
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean beforeInsert(BeanType object)
CallbacksGenericQueryManager.insert(Object),
or in the beginning of GenericQueryManager.save(Object)
if a new bean is being saved.
beforeInsert in interface Callbacks<BeanType>object - the bean instance that will be inserted
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean beforeDelete(int objectId)
CallbacksGenericQueryManager.delete(int).
beforeDelete in interface Callbacks<BeanType>objectId - the id of the bean that will be deleted
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean beforeSave(BeanType object)
CallbacksGenericQueryManager.save(Object).
beforeSave in interface Callbacks<BeanType>object - the bean instance that will be saved
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean beforeUpdate(BeanType object)
CallbacksGenericQueryManager.update(Object),
or in the beginning of GenericQueryManager.save(Object)
if an existing bean is being saved.
beforeUpdate in interface Callbacks<BeanType>object - the bean instance that will be updated
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean afterValidate(BeanType object)
CallbacksValidationContext.validate(Validated).
afterValidate in interface Callbacks<BeanType>object - the bean instance that was validated
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean afterInsert(BeanType object,
boolean success)
CallbacksGenericQueryManager.insert(Object),
or at the end of GenericQueryManager.save(Object)
if a new bean was saved.
afterInsert in interface Callbacks<BeanType>object - the bean instance that was insertedsuccess - true if the insert was successful; or
false otherwise
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean afterDelete(int objectId,
boolean success)
CallbacksGenericQueryManager.delete(int).
afterDelete in interface Callbacks<BeanType>objectId - the id of the bean instance that was deletedsuccess - true if the delete was successful; or
false otherwise
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean afterSave(BeanType object,
boolean success)
CallbacksGenericQueryManager.save(Object).
afterSave in interface Callbacks<BeanType>object - the bean instance that was savedsuccess - true if the save was successful; or
false otherwise
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean afterUpdate(BeanType object,
boolean success)
CallbacksGenericQueryManager.update(Object),
or at the end of GenericQueryManager.save(Object)
if an existing bean was saved.
afterUpdate in interface Callbacks<BeanType>object - the bean instance that was updatedsuccess - true if the update was successful; or
false otherwise
true if the execution should continue as normal;
or
false if the execution should be interrupted
public boolean afterRestore(BeanType object)
CallbacksGenericQueryManager.restore(int)
and GenericQueryManager.restoreFirst(RestoreQuery),
and for every instance restored during GenericQueryManager.restore()
and GenericQueryManager.restore(RestoreQuery).
afterRestore in interface Callbacks<BeanType>object - the bean instance that was restored
true if the execution should continue as normal;
or
false if the execution should be interrupted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||