db4o

IObjectTranslator Interface

translator interface to translate objects on storage and activation.

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

Db4objects.Db4o.Config.IObjectTranslator
   Db4objects.Db4o.Config.IObjectConstructor

public interface IObjectTranslator

Types that implement IObjectTranslator

Type Description
TSerializable translator for types that are marked with the Serializable attribute. The Serializable translator is provided to allow persisting objects that do not supply a convenient constructor. The use of this translator is recommended only if:
- the persistent type will never be refactored
- querying for type members is not necessary

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: Db4objects.Db4o.Config

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

See Also

IObjectTranslator Members | Db4objects.Db4o.Config Namespace