db4o

ObjectContainer.close Method 

closes the

ObjectContainer
.

bool close();

Return Value

success - true denotes that the last used instance of this container and the database file were closed.

Remarks

closes the

ObjectContainer
.

A call to
close()
automatically performs a commit() .

Note that every session opened with Db4o.openFile() requires one close()call, even if the same filename was used multiple times.

Use
while(!close()){}
to kill all sessions using this container.

See Also

ObjectContainer Interface | com.db4o Namespace