EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference

org.eclipse.persistence.core.mappings.converters
Interface CoreConverter<MAPPING extends CoreMapping,SESSION extends CoreSession>

All Known Subinterfaces:
Converter, XMLConverter
All Known Implementing Classes:
ClassInstanceConverter, EnumTypeConverter, InstanceClassConverter, JAXBEnumTypeConverter, JAXBTypesafeEnumConverter, ObjectTypeConverter, SerializedObjectConverter, TypeConversionConverter, TypeStringConverter, XMLConverterAdapter, XMLListConverter, XMLRootConverter

public interface CoreConverter<MAPPING extends CoreMapping,SESSION extends CoreSession>

INTERNAL A abstraction of converter capturing behavior common to all persistence types.


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(MAPPING mapping, SESSION session)
          PUBLIC: Allow for any initialization.
 

Method Detail

convertObjectValueToDataValue

java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue,
                                               SESSION session)
PUBLIC: Convert the object's representation of the value to the databases' data representation. For example this could convert between a Calendar Java type and the sql.Time datatype.


convertDataValueToObjectValue

java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue,
                                               SESSION session)
PUBLIC: Convert the databases' data representation of the value to the object's representation. For example this could convert between an sql.Time datatype and the Java Calendar type.


initialize

void initialize(MAPPING mapping,
                SESSION session)
PUBLIC: Allow for any initialization.


EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference