public class XMLRootConverter extends java.lang.Object implements XMLConverter
Purpose: Provides an implementation of XMLConverter to wrap/unwrap objects in an XMLRoot in order to capture element name information.
Responsibilities
XMLConverter
,
Converter
,
Serialized FormConstructor and Description |
---|
XMLRootConverter(XMLField associatedField) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertDataValueToObjectValue(java.lang.Object dataValue,
Session session)
PUBLIC:
Convert the databases' data representation of the value to the object's representation.
|
java.lang.Object |
convertDataValueToObjectValue(java.lang.Object dataValue,
Session session,
XMLUnmarshaller unmarshaller) |
java.lang.Object |
convertObjectValueToDataValue(java.lang.Object objectValue,
Session session)
PUBLIC:
Convert the object's representation of the value to the databases' data representation.
|
java.lang.Object |
convertObjectValueToDataValue(java.lang.Object objectValue,
Session session,
XMLMarshaller marshaller) |
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.
|
public XMLRootConverter(XMLField associatedField)
public java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue, Session session, XMLUnmarshaller unmarshaller)
convertDataValueToObjectValue
in interface XMLConverter
public java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue, Session session, XMLMarshaller marshaller)
convertObjectValueToDataValue
in interface XMLConverter
public java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue, Session session)
Converter
convertDataValueToObjectValue
in interface CoreConverter<DatabaseMapping,Session>
convertDataValueToObjectValue
in interface Converter
public java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue, Session session)
Converter
convertObjectValueToDataValue
in interface CoreConverter<DatabaseMapping,Session>
convertObjectValueToDataValue
in interface Converter
public void initialize(DatabaseMapping mapping, Session session)
Converter
initialize
in interface CoreConverter<DatabaseMapping,Session>
initialize
in interface Converter
public boolean isMutable()
Converter