db4o

ObjectContainer.delete Method 

deletes a stored object permanently.

[Visual Basic]
Sub delete( _ 
   ByVal obj As Object _ 
)
[C#]
void delete(
   object obj
);
[C++]
void delete(
   Object* obj
);
[JScript]
function delete(
   Object obj
);

Parameters

obj
the object to be deleted from the
ObjectContainer
.

Remarks

deletes a stored object permanently.

Note that this method has to be called for every single object individually. Delete does not recurse to object members. Simple and array member types are destroyed.

Object members of the passed object remain untouched, unless cascaded deletes are configured for the class or for one of the member fields .

The method has no effect, if the passed object is not stored in the

ObjectContainer
.

A subsequent call to
set()
with the same object newly stores the object to the
ObjectContainer
.

delete()
triggers the callback method objectOnDelete which can be also used for cascaded deletes.

See Also

ObjectContainer Interface | com.db4o Namespace | com.db4o.config.ObjectClass.cascadeOnDelete | com.db4o.config.ObjectField.cascadeOnDelete | Using callbacks