Interface GenericQueryManagerListener<BeanType>
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.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleted
(int objectId) Executed when a bean was successfully deleted.void
Executed when a bean was successfully inserted.void
Executed when the database structure has been successfully installed.void
removed()
Executed when the database structure has been successfully removed.void
Executed when a bean was successfully restored.void
Executed when a bean was successfully updated.
-
Method Details
-
installed
void installed()Executed when the database structure has been successfully installed.- Since:
- 1.0
-
removed
void removed()Executed when the database structure has been successfully removed.- Since:
- 1.0
-
inserted
Executed when a bean was successfully inserted.- Parameters:
bean
- the bean that was inserted- Since:
- 1.0
-
updated
Executed when a bean was successfully updated.- Parameters:
bean
- the bean that was updated- Since:
- 1.0
-
restored
Executed when a bean was successfully restored.- Parameters:
bean
- the bean that was restored- Since:
- 1.0
-
deleted
void deleted(int objectId) Executed when a bean was successfully deleted.- Parameters:
objectId
- the identifier of the bean that was deleted- Since:
- 1.0
-