public class ConverterClass<T extends jakarta.persistence.AttributeConverter<X,Y>,X,Y> extends Object implements Converter, org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
Modifier and Type | Field and Description |
---|---|
protected jakarta.persistence.AttributeConverter<X,Y> |
attributeConverter |
protected String |
attributeConverterClassName |
protected boolean |
disableConversion |
protected Class |
fieldClassification |
protected String |
fieldClassificationName |
protected boolean |
isForMapKey |
protected org.eclipse.persistence.internal.sessions.AbstractSession |
session |
Constructor and 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.
|
Modifier and Type | Method and 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:
|
protected jakarta.persistence.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 Class fieldClassification
protected String fieldClassificationName
protected String attributeConverterClassName
protected org.eclipse.persistence.internal.sessions.AbstractSession session
public ConverterClass(String attributeConverterClassName, boolean isForMapKey, String fieldClassificationName, boolean disableConversion)
public void convertClassNamesToClasses(ClassLoader classLoader)
convertClassNamesToClasses
in interface org.eclipse.persistence.internal.descriptors.ClassNameConversionRequired
public Object convertDataValueToObjectValue(Object dataValue, Session session)
convertDataValueToObjectValue
in interface CoreConverter<DatabaseMapping,Session>
convertDataValueToObjectValue
in interface Converter
public Object convertObjectValueToDataValue(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)
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.