EclipseLink 2.5.3, build 'v20180808-e38c757' API Reference

org.eclipse.persistence.mappings.converters
Class ConverterClass

java.lang.Object
  extended by org.eclipse.persistence.mappings.converters.ConverterClass
All Implemented Interfaces:
java.io.Serializable, CoreConverter<DatabaseMapping,Session>, Converter

public class ConverterClass
extends java.lang.Object
implements Converter

A JPA attribute converter class wrapped with an EclipseLink converter. This class is placed directly on mappings.

See Also:
Serialized Form
Author:
Guy Pelletier
Since:
Eclipselink 2.5

Field Summary
protected  AttributeConverter attributeConverter
           
protected  java.lang.String attributeConverterClassName
           
protected  boolean disableConversion
           
protected  java.lang.Class fieldClassification
           
protected  java.lang.String fieldClassificationName
           
protected  boolean isForMapKey
           
 
Constructor Summary
ConverterClass(java.lang.String attributeConverterClassName, boolean isForMapKey, java.lang.String fieldClassificationName, boolean disableConversion)
          INTERNAL: This method will be called when creating a converter for an embedded mapping attribute.
 
Method Summary
 void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
          INTERNAL: Convert all the class-name-based settings in this converter to actual class-based settings.
 java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue, Session session)
          INTERNAL:
 java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue, Session session)
          INTERNAL:
 void initialize(DatabaseMapping mapping, Session session)
          INTERNAL:
 boolean isMutable()
          INTERNAL:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isForMapKey

protected boolean isForMapKey

disableConversion

protected boolean disableConversion

fieldClassification

protected java.lang.Class fieldClassification

fieldClassificationName

protected java.lang.String fieldClassificationName

attributeConverterClassName

protected java.lang.String attributeConverterClassName

attributeConverter

protected AttributeConverter attributeConverter
Constructor Detail

ConverterClass

public ConverterClass(java.lang.String attributeConverterClassName,
                      boolean isForMapKey,
                      java.lang.String fieldClassificationName,
                      boolean disableConversion)
INTERNAL: This method will be called when creating a converter for an embedded mapping attribute. The isForMapKey information will need to be known for proper initialization.

Method Detail

convertClassNamesToClasses

public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this converter to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.


convertDataValueToObjectValue

public java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue,
                                                      Session session)
INTERNAL:

Specified by:
convertDataValueToObjectValue in interface CoreConverter<DatabaseMapping,Session>
Specified by:
convertDataValueToObjectValue in interface Converter

convertObjectValueToDataValue

public java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue,
                                                      Session session)
INTERNAL:

Specified by:
convertObjectValueToDataValue in interface CoreConverter<DatabaseMapping,Session>
Specified by:
convertObjectValueToDataValue in interface Converter

initialize

public void initialize(DatabaseMapping mapping,
                       Session session)
INTERNAL:

Specified by:
initialize in interface CoreConverter<DatabaseMapping,Session>
Specified by:
initialize in interface Converter

isMutable

public boolean isMutable()
INTERNAL:

Specified by:
isMutable in interface Converter

EclipseLink 2.5.3, build 'v20180808-e38c757' API Reference