public class XMLRootConverter extends 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 Form| Constructor and Description |
|---|
XMLRootConverter(XMLField associatedField) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertDataValueToObjectValue(Object dataValue,
Session session)
PUBLIC:
Convert the databases' data representation of the value to the object's representation.
|
Object |
convertDataValueToObjectValue(Object dataValue,
Session session,
XMLUnmarshaller unmarshaller) |
Object |
convertObjectValueToDataValue(Object objectValue,
Session session)
PUBLIC:
Convert the object's representation of the value to the databases' data representation.
|
Object |
convertObjectValueToDataValue(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 Object convertDataValueToObjectValue(Object dataValue, Session session, XMLUnmarshaller unmarshaller)
convertDataValueToObjectValue in interface XMLConverterpublic Object convertObjectValueToDataValue(Object objectValue, Session session, XMLMarshaller marshaller)
convertObjectValueToDataValue in interface XMLConverterpublic Object convertDataValueToObjectValue(Object dataValue, Session session)
ConverterconvertDataValueToObjectValue in interface CoreConverter<DatabaseMapping,Session>convertDataValueToObjectValue in interface Converterpublic Object convertObjectValueToDataValue(Object objectValue, Session session)
ConverterconvertObjectValueToDataValue in interface CoreConverter<DatabaseMapping,Session>convertObjectValueToDataValue in interface Converterpublic void initialize(DatabaseMapping mapping, Session session)
Converterinitialize in interface CoreConverter<DatabaseMapping,Session>initialize in interface Converterpublic boolean isMutable()
ConverterCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.