Module org.eclipse.persistence.core
Class ConverterClass<T extends AttributeConverter<X,Y>,X,Y>
java.lang.Object
org.eclipse.persistence.mappings.converters.ConverterClass<T,X,Y>
- All Implemented Interfaces:
Serializable,CoreConverter<DatabaseMapping,,Session> ClassNameConversionRequired,Converter
public class ConverterClass<T extends AttributeConverter<X,Y>,X,Y>
extends Object
implements Converter, ClassNameConversionRequired
A JPA attribute converter class wrapped with an EclipseLink converter. This
class is placed directly on mappings.
- Since:
- Eclipselink 2.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttributeConverter<X, Y> protected Stringprotected booleanprotected Class<?> protected Stringprotected booleanprotected AbstractSession -
Constructor Summary
ConstructorsConstructorDescriptionConverterClass(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 TypeMethodDescriptionvoidconvertClassNamesToClasses(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:protected AttributeConverter<X, Y> voidinitialize(DatabaseMapping mapping, Session session) INTERNAL:booleanINTERNAL:voidsetSession(AbstractSession session)
-
Field Details
-
isForMapKey
protected boolean isForMapKey -
disableConversion
protected boolean disableConversion -
fieldClassification
-
fieldClassificationName
-
attributeConverterClassName
-
attributeConverter
-
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:
convertClassNamesToClassesin interfaceClassNameConversionRequired
-
convertDataValueToObjectValue
INTERNAL:- Specified by:
convertDataValueToObjectValuein interfaceConverter- Specified by:
convertDataValueToObjectValuein interfaceCoreConverter<T extends AttributeConverter<X,Y>, X>
-
convertObjectValueToDataValue
INTERNAL:- Specified by:
convertObjectValueToDataValuein interfaceConverter- Specified by:
convertObjectValueToDataValuein interfaceCoreConverter<T extends AttributeConverter<X,Y>, X>
-
initialize
INTERNAL:- Specified by:
initializein interfaceConverter- Specified by:
initializein interfaceCoreConverter<T extends AttributeConverter<X,Y>, X>
-
isMutable
public boolean isMutable()INTERNAL: -
setSession
-
getAttributeConverter
-