|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface permits to the user to convert a value store a support into the value used in its persistent object. For example you can store a Date value as a long in your data support and view this value as a java.util.Date in youur application. It is the role of the persistent object provider to implement this interface for each field which the type does not match to the type into the data support. This converter can be only used for primitive type, ie the memory type cannot be a reference to a persistent object.
Method Summary | |
---|---|
java.lang.Class |
getMemoryType()
Retrieves the java type corresponding to the type in memory. |
java.lang.Class |
getStorageType()
Retrieves the java type corresponding to the type into the data support. |
java.lang.Object |
toMemory(java.lang.Object storagevalue)
Converts a value from the data support into a value in memory |
java.lang.Object |
toStorage(java.lang.Object memoryvalue)
Converts a value from the data support into a value in memory |
Method Detail |
public java.lang.Class getStorageType()
public java.lang.Class getMemoryType()
public java.lang.Object toMemory(java.lang.Object storagevalue)
storagevalue
- is the value store in the support (can be null).
public java.lang.Object toStorage(java.lang.Object memoryvalue)
memoryvalue
- the value in memory (can be null).
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |