db4o

ExtObjectContainer Members

ExtObjectContainer overview

Public Instance Methods

backup backs up a database file of an open ObjectContainer.
bind binds 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 .

configure returns the Configuration context for this ObjectContainer.
getByID returns 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 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.

getID returns 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 Db4oDatabase object for this ObjectContainer.
isActive tests if an object is activated.
isCached tests if an object with this ID is currently cached.
isClosed tests if this
ObjectContainer
is closed.
isStored tests if an object is stored in this
ObjectContainer
.
knownClasses returns all class representations that are known to this ObjectContainer because they have been used or stored.
Lock returns the main synchronisation lock.
migrateFrom aids 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.
purge Overloaded. unloads all clean indices from memory and frees unused objects.
reflector Return the reflector currently being used by db4objects.
refresh refreshs all members on a stored object to the specified depth.
releaseSemaphore releases a semaphore, if the calling transaction is the owner.
replicationBegin prepares for replication with 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.replication.ReplicationProcess interface provides methods to commit and to cancel the replication process.

This ObjectContainer will be "peerA" for the returned ReplicationProcess. The other ObjectContainer will be "peerB".
set deep update interface to store or update objects.
setSemaphore attempts 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.
version returns the current transaction serial number.

See Also

ExtObjectContainer Interface | com.db4o.ext Namespace