public class ClassInstanceConverter extends java.lang.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 |
|---|---|
java.lang.Object |
convertDataValueToObjectValue(java.lang.Object fieldValue,
Session session)
INTERNAL:
Convert the class name to a class, then create an instance of the class.
|
java.lang.Object |
convertObjectValueToDataValue(java.lang.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 java.lang.Object convertDataValueToObjectValue(java.lang.Object fieldValue,
Session session)
convertDataValueToObjectValue in interface Converterpublic java.lang.Object convertObjectValueToDataValue(java.lang.Object attributeValue,
Session session)
convertObjectValueToDataValue in interface Converterpublic void initialize(DatabaseMapping mapping, Session session)
initialize in interface Converterprotected DatabaseMapping getMapping()