Top Description Fields Constructors Methods
org.eclipse.persistence.mappings.converters

public Class ConverterClass<T extends AttributeConverter<X, Y>, X, Y>

extends Object
implements Converter, ClassNameConversionRequired
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired, org.eclipse.persistence.mappings.converters.Converter, java.io.Serializable, org.eclipse.persistence.core.mappings.converters.CoreConverter
Imports
java.security.AccessController, .PrivilegedActionException, org.eclipse.persistence.exceptions.ValidationException, org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired, org.eclipse.persistence.internal.localization.ExceptionLocalization, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, .PrivilegedClassForName, .PrivilegedNewInstanceFromClass, org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.logging.SessionLog, org.eclipse.persistence.mappings.DatabaseMapping, .DirectCollectionMapping, .DirectMapMapping, .DirectToFieldMapping, org.eclipse.persistence.sessions.Session, jakarta.persistence.AttributeConverter, .PersistenceException

A JPA attribute converter class wrapped with an EclipseLink converter. This class is placed directly on mappings.
Author
Guy Pelletier
Since
Eclipselink 2.5

Field Summary

Modifier and TypeField and Description
protected AttributeConverter<X, Y>
private Class<T>
protected String
protected boolean
protected Class<?>
protected String
protected boolean
protected AbstractSession

Constructor Summary

AccessConstructor and Description
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.

Method Summary

Modifier and TypeMethod and Description
private void
private void
public void
convertClassNamesToClasses(ClassLoader classLoader)

Implements org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired.convertClassNamesToClasses.

INTERNAL: Convert all the class-name-based settings in this converter to actual class-based settings.
public Object
public Object
protected AttributeConverter<X, Y>
private Class<T>
private T
getAttributeConverterInstance(Class<T> attributeConverterClass)

public void
public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeConverterback to summary
protected AttributeConverter<X, Y> attributeConverter
attributeConverterClassback to summary
private Class<T> attributeConverterClass
attributeConverterClassNameback to summary
protected String attributeConverterClassName
disableConversionback to summary
protected boolean disableConversion
fieldClassificationback to summary
protected Class<?> fieldClassification
fieldClassificationNameback to summary
protected String fieldClassificationName
isForMapKeyback to summary
protected boolean isForMapKey
sessionback to summary
protected AbstractSession session

Constructor Detail

ConverterClassback to summary
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

constructAttributeConverterback to summary
private void constructAttributeConverter()
constructFieldClassificationback to summary
private void constructFieldClassification(ClassLoader classLoader)
convertClassNamesToClassesback to summary
public void convertClassNamesToClasses(ClassLoader classLoader)

Implements org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired.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.

Annotations
@Override
convertDataValueToObjectValueback to summary
public Object convertDataValueToObjectValue(Object dataValue, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.convertDataValueToObjectValue.

INTERNAL:

Annotations
@Override
@SuppressWarnings:unchecked
convertObjectValueToDataValueback to summary
public Object convertObjectValueToDataValue(Object objectValue, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.convertObjectValueToDataValue.

INTERNAL:

Annotations
@Override
@SuppressWarnings:unchecked
getAttributeConverterback to summary
protected AttributeConverter<X, Y> getAttributeConverter()
getAttributeConverterClassback to summary
private Class<T> getAttributeConverterClass(ClassLoader classLoader)
getAttributeConverterInstanceback to summary
private T getAttributeConverterInstance(Class<T> attributeConverterClass)
initializeback to summary
public void initialize(DatabaseMapping mapping, Session session)

Implements org.eclipse.persistence.mappings.converters.Converter.initialize.

INTERNAL:

Annotations
@Override
isMutableback to summary
public boolean isMutable()

Implements org.eclipse.persistence.mappings.converters.Converter.isMutable.

INTERNAL:

Annotations
@Override
setSessionback to summary
public void setSession(AbstractSession session)