[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

interface to allow instantiating objects by calling specific constructors.

Namespace: Db4objects.Db4o.Config
Assembly:   Db4objects.Db4o (in Db4objects.Db4o.dll)

Syntax

Visual Basic (Declaration)
Public Interface IObjectConstructor _
	Implements IObjectTranslator
C#
public interface IObjectConstructor : IObjectTranslator
Visual C++
public interface class IObjectConstructor : IObjectTranslator

Remarks

interface to allow instantiating objects by calling specific constructors.

Examples: ../com/db4o/samples/translators.

By writing classes that implement this interface, it is possible to define which constructor is to be used during the instantiation of a stored object.

Before starting a db4o session, translator classes that implement the
 Copy imageCopy Code
ObjectConstructor
or ObjectTranslator need to be registered.

Example:
 Copy imageCopy Code
            Configuration config = Db4o.configure();
ObjectClass oc = config.objectClass("package.className");
oc.translate(new FooTranslator());