This interface only serves as a list of all available callback methods.
Every method is called individually, independantly of implementing this interface.
Using callbacks
Simply implement one or more of the listed methods in your application classes to
do tasks before activation, deactivation, delete, new or update, to cancel the
action about to be performed and to respond to the performed task.
Callback methods are typically used for:
- cascaded delete
- cascaded update
- cascaded activation
- restoring transient members on instantiation
Callback methods follow regular calling conventions. Methods in superclasses
need to be called explicitely.
All method calls are implemented to occur only once, upon one event.
Method Summary
public boolean
objectCanActivate(ObjectContainer container) called before an Object is activated.
Parameters: container - the ObjectContainer the object is stored in.
public boolean
objectCanDeactivate(ObjectContainer container) called before an Object is deactivated.
Parameters: container - the ObjectContainer the object is stored in.
In a client/server setup this callback method will be executed on
the server.
Parameters: container - the ObjectContainer the object is stored in.
public boolean
objectCanNew(ObjectContainer container) called before an Object is stored the first time.
Parameters: container - the ObjectContainer is about to be stored to.
public boolean
objectCanUpdate(ObjectContainer container) called before a persisted Object is updated.
Parameters: container - the ObjectContainer the object is stored in.
In a client/server setup this callback method will be executed on
the server.
Parameters: container - the ObjectContainer the object is stored in. false to prevent the object from being deleted.
called before an Object is stored the first time.
Parameters: container - the ObjectContainer is about to be stored to. false to prevent the object from being stored.
called before a persisted Object is updated.
Parameters: container - the ObjectContainer the object is stored in. false to prevent the object from being updated.