Summary
configuration interface.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Config - Implementing Types
graph BT
Type["IConfiguration"]
class Type type-node
Implementing0["Config4Impl"]-.->Type
click Implementing0 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Internal/Config4Impl"
Syntax
public interface IConfiguration
Remarks
configuration interface.
This interface contains methods to configure db4o.
The global Configuration context is available with
Most configuration settings should be set before opening an ObjectContainer/ObjectServer.
Some configuration settings can be modified on an open ObjectContainer/ObjectServer. The local Configuration context is available with
This interface contains methods to configure db4o.
The global Configuration context is available with
Db4objects.Db4o.Db4oFactory.Configure
.
When an ObjectContainer or ObjectServer is opened, the global Configuration
context is cloned and copied into the ObjectContainer/ObjectServer.
That means every ObjectContainer/ObjectServer gets it's own copy of
configuration settings.Most configuration settings should be set before opening an ObjectContainer/ObjectServer.
Some configuration settings can be modified on an open ObjectContainer/ObjectServer. The local Configuration context is available with
Db4objects.Db4o.Ext.IExtObjectContainer.Configure
and
Db4objects.Db4o.Ext.IExtObjectServer.Configure
.
Properties
Methods
Name | Value | Summary |
---|---|---|
ActivationDepth |
int |
gets the configured activation depth.
|
ActivationDepth |
void |
sets the activation depth to the specified value.
gets the configured activation depth.
|
Add |
void |
adds ConfigurationItems to be applied when
an ObjectContainer or ObjectServer is opened.
|
AddAlias |
void |
adds a new Alias for a class, namespace or package.
|
AllowVersionUpdates |
void |
turns automatic database file format version updates on.
|
AutomaticShutDown |
void |
turns automatic shutdown of the engine on and off.
|
BlockSize |
void |
sets the storage data blocksize for new ObjectContainers.
|
BTreeCacheHeight |
void |
configures caching of BTree nodes.
|
BTreeNodeSize |
void |
configures the size of BTree nodes in indexes.
|
Cache |
ICacheConfiguration |
returns the Cache configuration interface.
|
Callbacks |
void |
turns callback methods on and off.
|
CallConstructors |
void |
advises db4o to try instantiating objects with/without calling
constructors.
|
Class |
void |
turns
Db4objects.Db4o.Config.IObjectClass.MaximumActivationDepth(System.Int32)
on
and off.
This feature is turned on by default. In client/server environment this setting should be used on both client and server. |
ClientServer |
I |
returns client/server configuration interface.
|
DatabaseGrowthSize |
void |
configures the size database files should grow in bytes, when no
free slot is found within.
|
DetectSchemaChanges |
void |
tuning feature: configures whether db4o checks all persistent classes upon system
startup, for added or removed fields.
|
Diagnostic |
I |
returns the configuration interface for diagnostics.
|
Disable |
void |
turns commit recovery off.
|
Encrypt |
void |
configures the use of encryption.
|
Exceptions |
void |
configures whether Exceptions are to be thrown, if objects can not be stored.
|
Freespace |
I |
returns the freespace configuration interface.
|
Generate |
void |
Configures db4o to generate commit timestamps for all stored objects.
All the objects commited within a transaction will share the same commit timestamp. |
GenerateUUIDs |
void |
configures db4o to generate UUIDs for stored objects.
|
Generate |
void |
configures db4o to generate version numbers for stored objects.
|
InternStrings |
bool |
returns true if strings will be interned.
|
InternStrings |
void |
configures db4o to call #intern() on strings upon retrieval.
|
LockDatabaseFile |
void |
can be used to turn the database file locking thread off.
|
MarkTransient |
void |
allows to mark fields as transient with custom attributes.
|
MaxStackDepth |
int | |
MaxStackDepth |
void | |
MessageLevel |
void |
sets the detail level of db4o messages.
|
ObjectClass |
IObjectClass |
returns an
Db4objects.Db4o.Config.IObjectClass
object
to configure the specified class.
The clazz parameter can be any of the following: - a fully qualified classname as a String. - a Class object. - any other object to be used as a template. |
Optimize |
bool |
indicates whether Native Queries will be optimized dynamically.
|
Optimize |
void |
If set to true, db4o will try to optimize native queries
dynamically at query execution time, otherwise it will
run native queries in unoptimized mode as SODA evaluations.
|
Password |
void |
protects the database file with a password.
|
Queries |
IQueryConfiguration |
returns the Query configuration interface.
|
ReadOnly |
void |
turns readOnly mode on and off.
|
RecoveryMode |
void |
turns recovery mode on and off.
Recovery mode can be used to try to retrieve as much as possible out of an already corrupted database. |
ReflectWith |
void |
configures the use of a specially designed reflection implementation.
|
RegisterTypeHandler |
void |
allows registering special TypeHandlers for customized marshalling
and customized comparisons.
|
RemoveAlias |
void |
Removes an alias previously added with
Db4objects.Db4o.Config.IConfiguration.AddAlias(Db4objects.Db4o.Config.IAlias)
.
|
ReserveStorageSpace |
void |
tuning feature only: reserves a number of bytes in database files.
|
SetBlobPath |
void |
configures the path to be used to store and read
Blob data.
|
SetOut |
void |
Assigns a
System.IO.TextWriter
where db4o is to print its event messages.
Messages are useful for debugging purposes and for learning to understand, how db4o works. The message level can be raised with Db4objects.Db4o.Config.IConfiguration.MessageLevel(System.Int32)
to produce more detailed messages.
Use to print messages to the
console.In client-server environment this setting should be used on the same side where Db4objects.Db4o.Config.IConfiguration.MessageLevel(System.Int32)
is used. |
StringEncoding |
void |
configures the string encoding to be used.
|
TestConstructors |
void |
tuning feature: configures whether db4o should try to instantiate one instance
of each persistent class on system startup.
|
UpdateDepth |
void |
specifies the global updateDepth.
|
Weak |
void |
configures the timer for WeakReference collection.
|
WeakReferences |
void |
turns weak reference management on or off.
|