Class ConverterClass<T extends jakarta.persistence.AttributeConverter<X,Y>,X,Y>
java.lang.Object
org.eclipse.persistence.mappings.converters.ConverterClass<T,X,Y>
- All Implemented Interfaces:
Serializable
,CoreConverter<DatabaseMapping,
,Session> org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
,Converter
public class ConverterClass<T extends jakarta.persistence.AttributeConverter<X,Y>,X,Y>
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.
- See Also:
- Author:
- Guy Pelletier
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConverterClass
(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
Modifier and TypeMethodDescriptionvoid
convertClassNamesToClasses
(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings in this converter to actual class-based settings.convertDataValueToObjectValue
(Object dataValue, Session session) INTERNAL:convertObjectValueToDataValue
(Object objectValue, Session session) INTERNAL:void
initialize
(DatabaseMapping mapping, Session session) INTERNAL:boolean
INTERNAL:void
setSession
(org.eclipse.persistence.internal.sessions.AbstractSession session)
-
Field Details
-
isForMapKey
protected boolean isForMapKey -
disableConversion
protected boolean disableConversion -
fieldClassification
-
fieldClassificationName
-
attributeConverterClassName
-
attributeConverter
-
session
protected org.eclipse.persistence.internal.sessions.AbstractSession session
-
-
Constructor Details
-
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 Details
-
convertClassNamesToClasses
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
INTERNAL:- Specified by:
convertDataValueToObjectValue
in interfaceConverter
- Specified by:
convertDataValueToObjectValue
in interfaceCoreConverter<T extends jakarta.persistence.AttributeConverter<X,
Y>, X>
-
convertObjectValueToDataValue
INTERNAL:- Specified by:
convertObjectValueToDataValue
in interfaceConverter
- Specified by:
convertObjectValueToDataValue
in interfaceCoreConverter<T extends jakarta.persistence.AttributeConverter<X,
Y>, X>
-
initialize
INTERNAL:- Specified by:
initialize
in interfaceConverter
- Specified by:
initialize
in interfaceCoreConverter<T extends jakarta.persistence.AttributeConverter<X,
Y>, X>
-
isMutable
public boolean isMutable()INTERNAL: -
setSession
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session) -
getAttributeConverter
-