com.uwyn.rife.database.querymanagers.generic
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.5
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)
See Also:
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

installed

void installed()
Executed when the database structure has been successfully installed.

Since:
1.5

removed

void removed()
Executed when the database structure has been successfully removed.

Since:
1.5

inserted

void inserted(BeanType bean)
Executed when a bean was successfully inserted.

Parameters:
bean - the bean that was inserted
Since:
1.5

updated

void updated(BeanType bean)
Executed when a bean was successfully updated.

Parameters:
bean - the bean that was updated
Since:
1.5

restored

void restored(BeanType bean)
Executed when a bean was successfully restored.

Parameters:
bean - the bean that was restored
Since:
1.5

deleted

void deleted(int objectId)
Executed when a bean was successfully deleted.

Parameters:
objectId - the identifier of the bean that was deleted
Since:
1.5


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.