|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeConverter<X,Y>
A class that implements this interface can be used to convert entity attribute state into database column representation and back again. Note that the X and Y types may be the same Java type.
Method Summary | |
---|---|
Y |
convertToDatabaseColumn(X attribute)
Converts the value stored in the entity attribute into the data representation to be stored in the database. |
X |
convertToEntityAttribute(Y dbData)
Converts the data stored in the database column into the value to be stored in the entity attribute. |
Method Detail |
---|
Y convertToDatabaseColumn(X attribute)
attribute
- the entity attribute value to be converted
X convertToEntityAttribute(Y dbData)
dbData
- the data from the database column to be converted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |