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 Converter
public Object convertObjectValueToDataValue(Object attributeValue, Session session)
convertObjectValueToDataValue
in interface Converter
public void initialize(DatabaseMapping mapping, Session session)
initialize
in interface Converter
protected DatabaseMapping getMapping()
Copyright © 2024. All rights reserved.