|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GenericQueryManagerListener<BeanType>
The methods of a GenericQueryManagerListener will be executed
as the corresponding actions are successfully executed through the
GenericQueryManager that this listener is registered with.
The difference with Callbacks is that listeners are
associated with a GenericQueryManager and
Callbacks are associated with your domain model. Listeners
are also only called as a notification mechanisms, they don't allow you to
intervene in the execution flow. Listeners are called before 'after'
callbacks.
GenericQueryManager,
Callbacks| Method Summary | |
|---|---|
void |
deleted(int objectId)
Executed when a bean was successfully deleted. |
void |
inserted(BeanType bean)
Executed when a bean was successfully inserted. |
void |
installed()
Executed when the database structure has been successfully installed. |
void |
removed()
Executed when the database structure has been successfully removed. |
void |
restored(BeanType bean)
Executed when a bean was successfully restored. |
void |
updated(BeanType bean)
Executed when a bean was successfully updated. |
| Method Detail |
|---|
void installed()
void removed()
void inserted(BeanType bean)
bean - the bean that was insertedvoid updated(BeanType bean)
bean - the bean that was updatedvoid restored(BeanType bean)
bean - the bean that was restoredvoid deleted(int objectId)
objectId - the identifier of the bean that was deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||