You are here: Configuration > Common Configuration

Common Configuration

The common-configuration applies to the embedded-, client- and the server-mode of db4o. All the common configuration is accessible via the common-property on the configuration-object.

Overview

Here's a overview over all common configuration-settings which you can change:

  Same in C/S1 Can not change 2
ActivationDepth: Change globally the activation-depth.    
Aliases: Configure aliases for class and package-names.    
AllowVersionUpdates: Allow/Disallow to update the database-format. Yes  
AutomaticShutDown: Close the database when the application exits.    
BTreeNodeSize: Tune the size of the B-tree-node which are used for the indexes.    
Callbacks: Turn object-callbacks on an off.    
CallConstructors: Use or bypass the constructor for creating objects.    
DetectSchemaChanges: Disable/Enable schema changes detection.    
Diagnostic: Add diagnostic-listeners.    
ExceptionsOnNotStorable: Enable/Disable exceptions on not storable objects.    
InternStrings: Will call the intern-method on the retrieved strings.    
MarkTransient: Configure a Attribute for marking fields as transient.    
MessageLevel: Configure the logging-message level.    
NameProvider: Configure the toString() value of the object-container.    
ObjectClass: Configure class-specific settings.    
OptimizeNativeQueries: Enable runtime query optimization.    
OutStream: Configure the log message output stream    
Queries: Configure query behaviors    
ReflectWith: Configure a reflector.    
RegisterTypeHandler: Register a new TypeHandler. Required  
StringEncoding: Configure the string-encoding. Required Yes
TestConstructors: Configure if db4o checks for valid constructors.    
UpdateDepth: Change the update-depth.    
WeakReferenceCollectionInterval: Change the weak-reference cleanup interval. Default setting is 1000 milliseconds.    
WeakReferences: Enable/disable weak references.    

Additional Configuration Items

There are additional configuration items which add for additional features. You can add then on the common-configuration. For example to enable transparent persistence you add the TransparentPersistenceSupport configuration item. Take a look a the available configuration items. See "Common Configuration Items"