db4o |

# Configuration Members

Configuration overview

#### Public Instance Methods

ActivationDepth | sets the activation depth to the specified value.
AddAlias | adds a new Alias for a class, namespace or package.
AllowVersionUpdates | turns automatic database file format version updates on.
AutomaticShutDown | turns automatic shutdown of the engine on and off.
BlockSize | sets the storage data blocksize for new ObjectContainers.
BTreeCacheHeight | configures caching of BTree nodes.
BTreeNodeSize | configures the size of BTree nodes in indexes.
Callbacks | turns 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.
DetectSchemaChanges | tuning feature: configures whether db4o checks all persistent classes upon system startup, for added or removed fields.
Diagnostic | returns the configuration interface for diagnostics.
DisableCommitRecovery | turns commit recovery off.
DiscardFreeSpace | tuning feature: configures the minimum size of free space slots in the database file that are to be reused.
Encrypt | configures the use of encryption.
ExceptionsOnNotStorable | configures whether Exceptions are to be thrown, if objects can not be stored.
FlushFileBuffers | configures file buffers to be flushed during transaction commits.
Freespace | returns the freespace configuration interface
GenerateUUIDs | configures db4o to generate UUIDs for stored objects.
GenerateVersionNumbers | configures db4o to generate version numbers for stored objects.
GetMessageSender | returns the MessageSender for this Configuration context.
InternStrings | Configures db4o to call intern() on strings upon retrieval.
Io | allows to configure db4o to use a customized byte IO adapter.
LockDatabaseFile | can be used to turn the database file locking thread off.
MarkTransient | allows to mark fields as transient with custom attributes.
MessageLevel | sets 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.
OptimizeNativeQueries | Overloaded. 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 | protects the database file with a password.
ReadOnly | turns readOnly mode on and off.
ReflectWith | configures the use of a specially designed reflection implementation.
RefreshClasses | forces analysis of all Classes during a running session.
ReserveStorageSpace | tuning feature only: reserves a number of bytes in database files.
SetBlobPath | configures the path to be used to store and read Blob data.
SetClassLoader | configures db4o to use a custom ClassLoader.
SetMessageRecipient | sets the MessageRecipient to receive Client Server messages.
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.
SingleThreadedClient | configures the client messaging system to be single threaded or multithreaded.
TestConstructors | tuning feature: configures whether db4o should try to instantiate one instance of each persistent class on system startup.
TimeoutClientSocket | configures the time a client waits for a message response from the server.
TimeoutPingClients | configures the delay time after which the server starts pinging connected clients to check the connection.
TimeoutServerSocket | configures the timeout of the serverside socket.
Unicode | configures the storage format of Strings.
UpdateDepth | specifies the global updateDepth.
WeakReferenceCollectionInterval | configures the timer for WeakReference collection.
WeakReferences | turns weak reference management on or off.

#### See Also

Configuration Interface | com.db4o.config Namespace