Db4oEmbedded Class

Summary

Factory class to open db4o instances in embedded mode.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["Db4oEmbedded"] class Type type-node

Syntax

public class Db4oEmbedded

Remarks

Factory class to open db4o instances in embedded mode.

Use Db4objects.Db4o.CS.Db4oClientServer in Db4objects.Db4o.CS.dll for opening db4o servers and db4o clients.

Methods

Name Value Summary
NewConfiguration() IEmbeddedConfiguration
Creates a fresh Db4objects.Db4o.Config.IEmbeddedConfiguration instance.
static
OpenFile(IEmbeddedConfiguration, string) IEmbeddedObjectContainer
opens an Db4objects.Db4o.IObjectContainer on the specified database file for local use.

A database file can only be opened once, subsequent attempts to open another Db4objects.Db4o.IObjectContainer against the same file will result in a Db4objects.Db4o.Ext.DatabaseFileLockedException .

static
OpenFile(string) IEmbeddedObjectContainer
Same (from java) as calling Db4objects.Db4o.Db4oEmbedded.OpenFile(Db4objects.Db4o.Config.IEmbeddedConfiguration,System.String) with a fresh configuration ( Db4objects.Db4o.Db4oEmbedded.NewConfiguration ).
static

See Also

  • Db4objects.Db4o.CS.Db4oClientServer