Interface CoreConverter<MAPPING extends CoreMapping,SESSION extends CoreSession>

All Known Subinterfaces:
Converter, XMLConverter
All Known Implementing Classes:
ClassInstanceConverter, ConverterClass, 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 Details

    • convertObjectValueToDataValue

      Object convertObjectValueToDataValue(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

      Object convertDataValueToObjectValue(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.