public class ClassInstanceConverter extends Object implements Converter
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseMapping |
mapping |
| Constructor and Description |
|---|
ClassInstanceConverter()
PUBLIC:
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convertDataValueToObjectValue(Object fieldValue,
Session session)
INTERNAL:
Convert the class name to a class, then create an instance of the class.
|
Object |
convertObjectValueToDataValue(Object attributeValue,
Session session)
INTERNAL:
Convert to the field class.
|
protected DatabaseMapping |
getMapping()
INTERNAL:
Return the mapping.
|
void |
initialize(DatabaseMapping mapping,
Session session)
INTERNAL:
Set the mapping.
|
boolean |
isMutable()
INTERNAL:
If the converter converts the value to a non-atomic value, i.e.
|
protected DatabaseMapping mapping
public ClassInstanceConverter()
public Object convertDataValueToObjectValue(Object fieldValue, Session session)
convertDataValueToObjectValue in interface CoreConverter<DatabaseMapping,Session>convertDataValueToObjectValue in interface Converterpublic Object convertObjectValueToDataValue(Object attributeValue, Session session)
convertObjectValueToDataValue in interface CoreConverter<DatabaseMapping,Session>convertObjectValueToDataValue in interface Converterpublic void initialize(DatabaseMapping mapping, Session session)
initialize in interface CoreConverter<DatabaseMapping,Session>initialize in interface Converterprotected DatabaseMapping getMapping()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.