|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Converter
Purpose: Conversion interface to allow conversion between object and data types. This can be used in any mapping to convert between the object and data types without requiring code placed in the object model. TopLink provides several common converters, but the application can also define it own.
AbstractColumnMapping.setConverter(Converter)
,
DirectCollectionMapping#setConverter(Converter)
,
ObjectTypeConverter
,
TypeConversionConverter
Method Summary | |
---|---|
java.lang.Object |
convertDataValueToObjectValue(java.lang.Object dataValue,
Session session)
PUBLIC: Convert the databases' data representation of the value to the object's representation. |
java.lang.Object |
convertObjectValueToDataValue(java.lang.Object objectValue,
Session session)
PUBLIC: Convert the object's representation of the value to the databases' data representation. |
void |
initialize(DatabaseMapping mapping,
Session session)
PUBLIC: Allow for any initialization. |
boolean |
isMutable()
PUBLIC: If the converter converts the value to a mutable value, i.e. |
Method Detail |
---|
java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue, Session session)
java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue, Session session)
boolean isMutable()
void initialize(DatabaseMapping mapping, Session session)
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |