Package com.db4o.config
Class TTransient
- java.lang.Object
-
- com.db4o.config.TTransient
-
- All Implemented Interfaces:
ObjectConstructor,ObjectTranslator
public class TTransient extends java.lang.Object implements ObjectConstructor
-
-
Constructor Summary
Constructors Constructor Description TTransient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonActivate(ObjectContainer con, java.lang.Object object, java.lang.Object members)db4o calls this method during activation.java.lang.ObjectonInstantiate(ObjectContainer container, java.lang.Object storedObject)db4o calls this method when a stored object needs to be instantiated.java.lang.ObjectonStore(ObjectContainer con, java.lang.Object object)db4o calls this method during storage and query evaluation.java.lang.ClassstoredClass()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:ObjectTranslatordb4o calls this method during storage and query evaluation.- Specified by:
onStorein 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:ObjectTranslatordb4o calls this method during activation.- Specified by:
onActivatein 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:ObjectTranslatorreturn the Class you are converting to.- Specified by:
storedClassin interfaceObjectTranslator- Returns:
- the Class of the object you are returning with the method
ObjectTranslator.onStore(ObjectContainer, Object)
-
onInstantiate
public java.lang.Object onInstantiate(ObjectContainer container, java.lang.Object storedObject)
Description copied from interface:ObjectConstructordb4o calls this method when a stored object needs to be instantiated.- Specified by:
onInstantiatein interfaceObjectConstructor- Parameters:
container- the ObjectContainer usedstoredObject- the object stored withObjectTranslator.onStore.- Returns:
- the instantiated object.
-
-