db4o

Db4oFactory.OpenFile Method

opens an ObjectContainer on the specified database file for local use.

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

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.

Overload List

opens an ObjectContainer on the specified database file for local use.

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

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.

public static IObjectContainer OpenFile(IConfiguration,string);

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.

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

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.

public static IObjectContainer OpenFile(string);

See Also

Db4oFactory Class | Db4objects.Db4o Namespace | Db4objects.Db4o.Config.IConfiguration.ReadOnly | Db4objects.Db4o.Config.IConfiguration.Encrypt | Db4objects.Db4o.Config.IConfiguration.Password