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

translator interface to translate objects on storage and activation.

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

Syntax

Visual Basic (Declaration)
Public Interface IObjectTranslator
C#
public interface IObjectTranslator
Visual C++
public interface class IObjectTranslator

Remarks

translator interface to translate objects on storage and activation.

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

By writing classes that implement this interface, it is possible to define how application classes are to be converted to be stored more efficiently.

Before starting a db4o session, translator classes need to be registered. An example:
 Copy imageCopy Code
            Configuration config = Db4o.configure();
ObjectClass oc = config.objectClass("package.className");
oc.translate(new FooTranslator());