db4o

ObjectCallbacks Interface

callback methods.

For a list of all members of this type, see ObjectCallbacks Members.

[Visual Basic]
Public Interface ObjectCallbacks
[C#]
public interface ObjectCallbacks
[C++]
public __gc __interface ObjectCallbacks
[JScript]
public interface ObjectCallbacks

Remarks

callback methods.

Examples: ../com/db4o/samples/callbacks.

This interface only serves as a lists of all available callback methods. Every method is called individually, independant 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.

Requirements

Namespace: com.db4o.ext

Assembly: db4o (in db4o.dll)

See Also

ObjectCallbacks Members | com.db4o.ext Namespace