db4o

ExtObjectContainer Methods

The methods of the ExtObjectContainer interface are listed below. For a complete list of ExtObjectContainer interface members, see the ExtObjectContainer Members topic.

Public Instance Methods

backupbacks up a database file of an open ObjectContainer.
bindbinds an object to an internal object ID.
collections returns the com.db4o.types.Db4oCollections interface to create or modify database-aware collections for this com.db4o.ObjectContainer .

configurereturns the Configuration context for this ObjectContainer.
getByIDreturns the stored object for an internal ID.
getByUUID returns a stored object for a com.db4o.ext.Db4oUUID .

This method is intended for replication and for long-term external references to objects. To get a com.db4o.ext.Db4oUUID for an object use com.db4o.ext.ExtObjectContainer.getObjectInfo and com.db4o.ext.ObjectInfo.getUUID .

Objects will not be activated by this method. They will be returned in the activation state they are currently in, in the local cache.

getIDreturns the internal unique object ID.
getObjectInfo returns the com.db4o.ext.ObjectInfo for a stored object.

This method will return null, if the passed object is not stored to this
ObjectContainer
.

identity returns the com.db4o.ext.Db4oDatabase object for this ObjectContainer.
isActivetests if an object is activated.
isCachedtests if an object with this ID is currently cached.
isClosedtests if this
ObjectContainer
is closed.
isStoredtests if an object is stored in this
ObjectContainer
.
Lockreturns the main synchronisation lock.
migrateFromaids migration of objects between ObjectContainers.
peekPersisted returns a transient copy of a persistent object with all members set to the values that are currently stored to the database.
purgeOverloaded. unloads a specific object from the db4o reference mechanism.
refreshrefreshs all members on a stored object to the specified depth.
releaseSemaphorereleases a semaphore, if the calling transaction is the owner.
replicateTo starts replication to another com.db4o.ObjectContainer .

An com.db4o.ObjectContainer can only be involved in a replication process with one other com.db4o.ObjectContainer at the same time.

The returned com.db4o.ext.Db4oReplication interface provides methods to commit and to cancel the replication process.

It also allows to register a conflicthandler, in case objects have been modified in both ObjectContainers, since the two ObjectContainers were last replicated with eachother.

setdeep update interface to store or update objects.
setSemaphoreattempts to set a semaphore.
storedClass returns a com.db4o.ext.StoredClass meta information object.

There are three options how to use this method.
Any of the following parameters are possible:
- a fully qualified classname.
- a Class object.
- any object to be used as a template.

storedClasses returns an array of all com.db4o.ext.StoredClass meta information objects.

See Also

ExtObjectContainer Interface | com.db4o.ext Namespace