db4o

IConfiguration Methods

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

Public Instance Methods

ActivationDepthsets the activation depth to the specified value.
AddAliasadds a new Alias for a class, namespace or package.
AllowVersionUpdatesturns automatic database file format version updates on.
AutomaticShutDownturns automatic shutdown of the engine on and off.
BlockSizesets the storage data blocksize for new ObjectContainers.
BTreeCacheHeightconfigures caching of BTree nodes.
BTreeNodeSizeconfigures the size of BTree nodes in indexes.
Callbacksturns callback methods on and off.
CallConstructors advises db4o to try instantiating objects with/without calling constructors.
ClassActivationDepthConfigurable turns individual class activation depth configuration on and off.

This feature is turned on by default.

ClientServerreturns the freespace configuration interface.
DetectSchemaChanges tuning feature: configures whether db4o checks all persistent classes upon system startup, for added or removed fields.
Diagnosticreturns the configuration interface for diagnostics.
DisableCommitRecoveryturns commit recovery off.
DiscardFreeSpace tuning feature: configures the minimum size of free space slots in the database file that are to be reused.
Encryptconfigures the use of encryption.
ExceptionsOnNotStorableconfigures whether Exceptions are to be thrown, if objects can not be stored.
FlushFileBuffersconfigures file buffers to be flushed during transaction commits.
Freespacereturns the freespace configuration interface.
GenerateUUIDsconfigures db4o to generate UUIDs for stored objects.
GenerateVersionNumbersconfigures db4o to generate version numbers for stored objects.
InternStringsConfigures db4o to call intern() on strings upon retrieval.
Ioallows to configure db4o to use a customized byte IO adapter.
LockDatabaseFilecan be used to turn the database file locking thread off.
MarkTransientallows to mark fields as transient with custom attributes.
MessageLevelsets the detail level of db4o messages.
ObjectClass returns an ObjectClass 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.

OptimizeNativeQueriesOverloaded. 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.
Passwordprotects the database file with a password.
Queriesreturns the Query configuration interface.
ReadOnlyturns readOnly mode on and off.
ReflectWithconfigures the use of a specially designed reflection implementation.
RefreshClassesforces analysis of all Classes during a running session.
RemoveAlias Removes an alias previously added with addAlias .
ReserveStorageSpacetuning feature only: reserves a number of bytes in database files.
SetBlobPath configures the path to be used to store and read Blob data.
SetClassLoaderconfigures db4o to use a custom ClassLoader.
SetOut Assigns a PrintStream 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 Db4o.configure().messageLevel() to produce more detailed messages.

Use
setOut(System.out)
to print messages to the console.

TestConstructors tuning feature: configures whether db4o should try to instantiate one instance of each persistent class on system startup.
Unicodeconfigures the storage format of Strings.
UpdateDepthspecifies the global updateDepth.
WeakReferenceCollectionIntervalconfigures the timer for WeakReference collection.
WeakReferencesturns weak reference management on or off.

See Also

IConfiguration Interface | Db4objects.Db4o.Config Namespace