Summary
callback methods.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Ext
graph BT
Type["IObjectCallbacks"]
class Type type-node
Syntax
public interface IObjectCallbacks
Remarks
callback methods.
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.
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.
Methods
Name | Value | Summary |
---|---|---|
ObjectCanActivate |
bool |
called before an Object is activated.
|
ObjectCanDeactivate |
bool |
called before an Object is deactivated.
|
ObjectCanDelete |
bool |
called before an Object is deleted.
|
ObjectCanNew |
bool |
called before an Object is stored the first time.
|
ObjectCanUpdate |
bool |
called before a persisted Object is updated.
|
ObjectOnActivate |
void |
called upon activation of an object.
|
ObjectOnDeactivate |
void |
called upon deactivation of an object.
|
ObjectOnDelete |
void |
called after an object was deleted.
|
ObjectOnNew |
void |
called after a new object was stored.
|
ObjectOnUpdate |
void |
called after an object was updated.
|