Package com.db4o
Interface EmbeddedObjectContainer
-
- All Superinterfaces:
ObjectContainer
- All Known Implementing Classes:
IoAdaptedObjectContainer
,LocalObjectContainer
,TransportObjectContainer
public interface EmbeddedObjectContainer extends ObjectContainer
Represents a local ObjectContainer attached to a database file.- Since:
- 7.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
backup(java.lang.String path)
Backs up a database file of an open ObjectContainer.-
Methods inherited from interface com.db4o.ObjectContainer
activate, close, commit, deactivate, delete, ext, query, query, query, query, query, queryByExample, rollback, store
-
-
-
-
Method Detail
-
backup
void backup(java.lang.String path) throws Db4oIOException, DatabaseClosedException, NotSupportedException
Backs up a database file of an open ObjectContainer.
While the backup is running, the ObjectContainer can continue to be used. Changes that are made while the backup is in progress will be applied to the object container and to the backup.
While the backup is running, the object container should not be closed.
If a file already exists at the specified path, it will be overwritten.
TheStorage
used for backup is the one configured for this container. If you want to use another storage implementation for the backup please useext()
.backup(com.db4o.io.Storage, String)
.- Parameters:
path
- a the path to the backup file- Throws:
DatabaseClosedException
- db4o database file was closed or failed to open.NotSupportedException
- is thrown when the operation is not supported in current configuration/environmentDb4oIOException
- I/O operation failed or was unexpectedly interrupted.
-
-