public class ConverterClass<T extends AttributeConverter<X,Y>,X,Y> extends java.lang.Object implements Converter, org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
Modifier and Type | Field and Description |
---|---|
protected AttributeConverter<X,Y> |
attributeConverter |
protected java.lang.String |
attributeConverterClassName |
protected boolean |
disableConversion |
protected java.lang.Class |
fieldClassification |
protected java.lang.String |
fieldClassificationName |
protected boolean |
isForMapKey |
protected org.eclipse.persistence.internal.sessions.AbstractSession |
session |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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:
|
protected AttributeConverter<X,Y> |
getAttributeConverter() |
void |
initialize(DatabaseMapping mapping,
Session session)
INTERNAL:
|
boolean |
isMutable()
INTERNAL:
|
void |
setSession(org.eclipse.persistence.internal.sessions.AbstractSession session) |
protected boolean isForMapKey
protected boolean disableConversion
protected java.lang.Class fieldClassification
protected java.lang.String fieldClassificationName
protected java.lang.String attributeConverterClassName
protected AttributeConverter<X,Y> attributeConverter
protected org.eclipse.persistence.internal.sessions.AbstractSession session
public ConverterClass(java.lang.String attributeConverterClassName, boolean isForMapKey, java.lang.String fieldClassificationName, boolean disableConversion)
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses
in interface org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
public java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue, Session session)
convertDataValueToObjectValue
in interface CoreConverter<DatabaseMapping,Session>
convertDataValueToObjectValue
in interface Converter
public java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue, Session session)
convertObjectValueToDataValue
in interface CoreConverter<DatabaseMapping,Session>
convertObjectValueToDataValue
in interface Converter
public void initialize(DatabaseMapping mapping, Session session)
initialize
in interface CoreConverter<DatabaseMapping,Session>
initialize
in interface Converter
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
protected AttributeConverter<X,Y> getAttributeConverter()