db4o

ObjectTranslator Interface

translator interface to translate objects on storage and activation.

For a list of all members of this type, see ObjectTranslator Members.

com.db4o.config.ObjectTranslator
   com.db4o.config.ObjectConstructor

[Visual Basic]
Public Interface ObjectTranslator
[C#]
public interface ObjectTranslator
[C++]
public __gc __interface ObjectTranslator
[JScript]
public interface ObjectTranslator

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:

Configuration config = Db4o.configure();
ObjectClass oc = config.objectClass("package.className");
oc.translate(new FooTranslator());


Requirements

Namespace: com.db4o.config

Assembly: db4o (in db4o.dll)

See Also

ObjectTranslator Members | com.db4o.config Namespace