Summary
translator interface to translate objects on storage and activation.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Config - Implementing Types
graph BT
Type["IObjectTranslator"]
class Type type-node
Implementing0["TSerializable"]-.->Type
click Implementing0 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TSerializable"
Implementing1["TStack"]-.->Type
click Implementing1 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TStack"
Implementing2["TDictionary"]-.->Type
click Implementing2 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TDictionary"
Implementing3["TTransient"]-.->Type
click Implementing3 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TTransient"
Implementing4["TCultureInfo"]-.->Type
click Implementing4 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TCultureInfo"
Implementing5["IObjectConstructor"]-.->Type
click Implementing5 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/IObjectConstructor"
Implementing6["TNull"]-.->Type
click Implementing6 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TNull"
Implementing7["TType"]-.->Type
click Implementing7 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TType"
Implementing8["TQueue"]-.->Type
click Implementing8 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TQueue"
Implementing9["TList"]-.->Type
click Implementing9 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Config/TList"
Syntax
public interface IObjectTranslator
Remarks
translator interface to translate objects on storage and activation.
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:
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:
IObjectClass oc = config.ObjectClass("Namespace.ClassName");
oc.Translate(new FooTranslator());
Methods
Name | Value | Summary |
---|---|---|
OnActivate |
void |
db4o calls this method during activation.
|
OnStore |
Object |
db4o calls this method during storage and query evaluation.
|
StoredClass |
Type |
return the Class you are converting to.
|