activates all members on a stored object to the specified depth.
[Visual Basic] Sub activate( _ ByVal obj As Object, _ ByVal depth As Integer _ ) [C#] void activate( object obj, int depth ); [C++] void activate( Object* obj, int depth ); [JScript] function activate( Object obj, int depth );
activates all members on a stored object to the specified depth.
Examples: ../com/db4o/samples/activate.
This method serves to traverse the graph of persistent objects. All members of an object can be activated in turn with subsequent calls.
Only objects in
DEACTIVATEDstate are modified.
Objectmembers at the specified depth are instantiated in
DEACTIVATEDstate.
activate()calls on the same object have no effect. Passing an object that is not stored in the
ObjectContainerhas no effect.
activate()triggers the callback method objectOnActivate which can be used for cascaded activation.
ObjectContainer Interface | com.db4o Namespace | Why activation? | Using callbacks