db4o

Db4oFactory Methods

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

Public Static Methods

CloneConfiguration Creates a clone of the global db4o Configuration .
Configure returns the global db4o Configuration context for the running JVM session.

The Configuration can be overriden in each ObjectContainer .

Mainprints the version name of this db4o version to
System.out
.
NewConfiguration Creates a fresh Configuration instance.
OpenClientOverloaded. Operates just like Db4objects.Db4o.Db4oFactory.OpenClient , but uses the global db4o Configuration context. opens an ObjectContainer client and connects it to the specified named server and port.

The server needs to allow access for the specified user and password.

A client ObjectContainer can be cast to ExtClient to use extended ExtObjectContainer and ExtClient methods.

OpenFileOverloaded. Operates just like Db4objects.Db4o.Db4oFactory.OpenFile , but uses the global db4o Configuration context. opens an ObjectContainer on the specified database file for local use.

Subsidiary calls with the same database file name will return the same ObjectContainer object.

Every call to
openFile()
requires a corresponding ObjectContainer.close .

Database files can only be accessed for readwrite access from one process (one Java VM) at one time. All versions except for db4o mobile edition use an internal mechanism to lock the database file for other processes.

OpenServerOverloaded. Operates just like Db4objects.Db4o.Db4oFactory.OpenServer , but uses the global db4o Configuration context. opens an ObjectServer on the specified database file and port.

If the server does not need to listen on a port because it will only be used in embedded mode with Db4objects.Db4o.IObjectServer.OpenClient , specify '0' as the port number.
Versionreturns the version name of the used db4o version.

Protected Static Methods

OpenMemoryFile1 

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

Db4oFactory Class | Db4objects.Db4o Namespace | ExtDb4o for extended functionality.