db4o

Configuration Members

Configuration overview

Public Instance Methods

activationDepthsets the activation depth to the specified value.
automaticShutDownturns automatic shutdown of the engine on and off.
blockSizesets the storage data blocksize for new ObjectContainers.
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.

detectSchemaChanges tuning feature: configures whether db4o checks all persistent classes upon system startup, for added or removed fields.
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.
generateUUIDsconfigures db4o to generate UUIDs for stored objects.
generateVersionNumbersconfigures db4o to generate version numbers for stored objects.
getMessageSenderreturns the MessageSender for this Configuration context.
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.

There are three options how to use this method.
Any of the following parameters are possible:
- a fully qualified classname.
- a Class object.
- any object to be used as a template.

passwordprotects the database file with a password.
readOnlyturns readOnly mode on and off.
reflectWithconfigures the use of a specially designed reflection implementation.
refreshClassesforces analysation of all Classes during a running session.
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.
setMessageRecipientsets the MessageRecipient to receive Client Server messages.
setOutassigns a
PrintStream
where db4o is to print its event messages.
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.
timeoutServerSocketconfigures the timeout of the serverside socket.
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

Configuration Interface | com.db4o.config Namespace