Class ConverterClass
- java.lang.Object
-
- org.eclipse.persistence.mappings.converters.ConverterClass
-
- All Implemented Interfaces:
Serializable
,CoreConverter<DatabaseMapping,Session>
,org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
,Converter
public class ConverterClass extends Object implements Converter, org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
A JPA attribute converter class wrapped with an EclipseLink converter. This class is placed directly on mappings.- Since:
- Eclipselink 2.5
- Author:
- Guy Pelletier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConverterClass(String attributeConverterClassName, boolean isForMapKey, String fieldClassificationName, boolean disableConversion)
INTERNAL: This method will be called when creating a converter for an embedded mapping attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convertClassNamesToClasses(ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this converter to actual class-based settings.Object
convertDataValueToObjectValue(Object dataValue, Session session)
INTERNAL:Object
convertObjectValueToDataValue(Object objectValue, Session session)
INTERNAL:void
initialize(DatabaseMapping mapping, Session session)
INTERNAL:boolean
isMutable()
INTERNAL:
-
-
-
Constructor Detail
-
ConverterClass
public ConverterClass(String attributeConverterClassName, boolean isForMapKey, 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(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.- Specified by:
convertClassNamesToClasses
in interfaceorg.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
-
convertDataValueToObjectValue
public Object convertDataValueToObjectValue(Object dataValue, Session session)
INTERNAL:- Specified by:
convertDataValueToObjectValue
in interfaceConverter
- Specified by:
convertDataValueToObjectValue
in interfaceCoreConverter<DatabaseMapping,Session>
-
convertObjectValueToDataValue
public Object convertObjectValueToDataValue(Object objectValue, Session session)
INTERNAL:- Specified by:
convertObjectValueToDataValue
in interfaceConverter
- Specified by:
convertObjectValueToDataValue
in interfaceCoreConverter<DatabaseMapping,Session>
-
initialize
public void initialize(DatabaseMapping mapping, Session session)
INTERNAL:- Specified by:
initialize
in interfaceConverter
- Specified by:
initialize
in interfaceCoreConverter<DatabaseMapping,Session>
-
-