public class InstanceClassConverter extends java.lang.Object implements Converter
Purpose: A converter used in conjunction with sdoJava:instanceClass The customClass on the converter must be set and that class must have a Constructor that takes a String argument and a toString method. Used when the javaClass open content property is set.
Constructor and Description |
---|
InstanceClassConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertDataValueToObjectValue(java.lang.Object dataValue,
Session session)
Convert the value from XML as required during unmarshal
|
java.lang.Object |
convertObjectValueToDataValue(java.lang.Object objectValue,
Session session)
Convert the value as required during marshal.
|
java.lang.Class |
getCustomClass() |
void |
initialize(DatabaseMapping mapping,
Session session)
PUBLIC:
Allow for any initialization.
|
boolean |
isMutable()
PUBLIC:
If the converter converts the value to a mutable value, i.e.
|
void |
setCustomClass(java.lang.Class customClass) |
public java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue, Session session)
convertObjectValueToDataValue
in interface CoreConverter<DatabaseMapping,Session>
convertObjectValueToDataValue
in interface Converter
objectValue
- session
- public java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue, Session session)
convertDataValueToObjectValue
in interface CoreConverter<DatabaseMapping,Session>
convertDataValueToObjectValue
in interface Converter
dataValue
- session
- public boolean isMutable()
Converter
public void initialize(DatabaseMapping mapping, Session session)
Converter
initialize
in interface CoreConverter<DatabaseMapping,Session>
initialize
in interface Converter
public void setCustomClass(java.lang.Class customClass)
public java.lang.Class getCustomClass()