IObjectCallbacks Interface

Summary

callback methods.
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.

Methods

Name Value Summary
ObjectCanActivate(IObjectContainer) bool
called before an Object is activated.
ObjectCanDeactivate(IObjectContainer) bool
called before an Object is deactivated.
ObjectCanDelete(IObjectContainer) bool
called before an Object is deleted.
ObjectCanNew(IObjectContainer) bool
called before an Object is stored the first time.
ObjectCanUpdate(IObjectContainer) bool
called before a persisted Object is updated.
ObjectOnActivate(IObjectContainer) void
called upon activation of an object.
ObjectOnDeactivate(IObjectContainer) void
called upon deactivation of an object.
ObjectOnDelete(IObjectContainer) void
called after an object was deleted.
ObjectOnNew(IObjectContainer) void
called after a new object was stored.
ObjectOnUpdate(IObjectContainer) void
called after an object was updated.