|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.helper.InstanceClassConverter
public class InstanceClassConverter
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 Summary | |
---|---|
InstanceClassConverter()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceClassConverter()
Method Detail |
---|
public java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue, Session session)
convertObjectValueToDataValue
in interface Converter
objectValue
- session
-
public java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue, Session session)
convertDataValueToObjectValue
in interface Converter
dataValue
- session
-
public boolean isMutable()
Converter
isMutable
in interface Converter
public void initialize(DatabaseMapping mapping, Session session)
Converter
initialize
in interface Converter
public void setCustomClass(java.lang.Class customClass)
public java.lang.Class getCustomClass()
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |