db4o |

# ObjectContainer.close Method

closes this ObjectContainer.

bool close();

#### Return Value

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

#### Remarks

closes this 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