Top Description Methods
org.eclipse.persistence.core.mappings.converters

public Interface CoreConverter<MAPPING extends CoreMapping<ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor, ABSTRACT_SESSION extends CoreAbstractSession, CONTAINER_POLICY extends CoreContainerPolicy, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, FIELD extends CoreField>, SESSION extends CoreSession>

Known Direct Subinterfaces
org.eclipse.persistence.mappings.converters.Converter
Imports
org.eclipse.persistence.core.mappings.CoreMapping, org.eclipse.persistence.core.sessions.CoreSession

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

Method Summary

Modifier and TypeMethod and Description
public Object
convertDataValueToObjectValue(Object dataValue, SESSION session)

PUBLIC: Convert the databases' data representation of the value to the object's representation.

public Object
convertObjectValueToDataValue(Object objectValue, SESSION session)

PUBLIC: Convert the object's representation of the value to the databases' data representation.

public void
initialize(MAPPING mapping, SESSION session)

PUBLIC: Allow for any initialization.

Method Detail

convertDataValueToObjectValueback to summary
public 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.

convertObjectValueToDataValueback to summary
public 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.

initializeback to summary
public void initialize(MAPPING mapping, SESSION session)

PUBLIC: Allow for any initialization.