|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generally, implementations of this interface map instances of one Java type into instances of another Java type. Mappers are used in cases when instances of "enum" types are used as CMP field values. In this case, a mapper represents a mediator and translates instances of "enum" to some id when that can be stored in a column when storing data and back from id to "enum" instance when data is loaded.
Method Summary | |
Object |
toColumnValue(Object fieldValue)
This method is called when CMP field is stored. |
Object |
toFieldValue(Object columnValue)
This method is called when CMP field is loaded. |
Method Detail |
public Object toColumnValue(Object fieldValue)
fieldValue
- - CMP field value
public Object toFieldValue(Object columnValue)
columnValue
- - loaded column value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |