Package com.db4o.config
Class TCollection
- java.lang.Object
-
- com.db4o.config.TCollection
-
- All Implemented Interfaces:
ObjectTranslator
public class TCollection extends java.lang.Object implements ObjectTranslator
-
-
Constructor Summary
Constructors Constructor Description TCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onActivate(ObjectContainer con, java.lang.Object object, java.lang.Object members)
db4o calls this method during activation.java.lang.Object
onStore(ObjectContainer con, java.lang.Object object)
db4o calls this method during storage and query evaluation.java.lang.Class
storedClass()
return the Class you are converting to.
-
-
-
Method Detail
-
onStore
public java.lang.Object onStore(ObjectContainer con, java.lang.Object object)
Description copied from interface:ObjectTranslator
db4o calls this method during storage and query evaluation.- Specified by:
onStore
in interfaceObjectTranslator
- Parameters:
con
- the ObjectContainer usedobject
- the Object to be translated- Returns:
- return the object to store.
It needs to be of the classObjectTranslator.storedClass()
.
-
onActivate
public void onActivate(ObjectContainer con, java.lang.Object object, java.lang.Object members)
Description copied from interface:ObjectTranslator
db4o calls this method during activation.- Specified by:
onActivate
in interfaceObjectTranslator
- Parameters:
con
- the ObjectContainer usedobject
- the object to set the members onmembers
- the object that was stored
-
storedClass
public java.lang.Class storedClass()
Description copied from interface:ObjectTranslator
return the Class you are converting to.- Specified by:
storedClass
in interfaceObjectTranslator
- Returns:
- the Class of the object you are returning with the method
ObjectTranslator.onStore(ObjectContainer, Object)
-
-