Purpose: Provides an implementation of XMLConverter to wrap/unwrap objects in an XMLRoot in order to capture element name information.
Responsibilities
XMLConverter, Converter
| Modifier and Type | Field and Description |
|---|---|
| private XMLField | |
| private DatabaseMapping | |
| private XPathFragment |
| Access | Constructor and Description |
|---|---|
| public |
| associatedField | back to summary |
|---|---|
| private XMLField associatedField | |
| mapping | back to summary |
|---|---|
| private DatabaseMapping mapping | |
| rootFragment | back to summary |
|---|---|
| private XPathFragment<XML_FIELD extends Field> rootFragment | |
| XMLRootConverter | back to summary |
|---|---|
| public XMLRootConverter(XMLField associatedField) | |
| convertDataValueToObjectValue | back to summary |
|---|---|
| public Object convertDataValueToObjectValue(Object dataValue, Session session, XMLUnmarshaller unmarshaller) Implements org.
| |
| convertDataValueToObjectValue | back to summary |
|---|---|
| public Object convertDataValueToObjectValue(Object dataValue, Session session) Implements org. Doc from org. PUBLIC: Convert the databases' data representation of the value to the object's representation. For example this could convert between an sql.Time datatype and the Java Calendar type.
| |
| convertObjectValueToDataValue | back to summary |
|---|---|
| public Object convertObjectValueToDataValue(Object objectValue, Session session, XMLMarshaller marshaller) Implements org.
| |
| convertObjectValueToDataValue | back to summary |
|---|---|
| public Object convertObjectValueToDataValue(Object objectValue, Session session) Implements org. Doc from org. PUBLIC: Convert the object's representation of the value to the databases' data representation. For example this could convert between a Calendar Java type and the sql.Time datatype.
| |
| initialize | back to summary |
|---|---|
| public void initialize(DatabaseMapping mapping, Session session) Implements org. Doc from org. PUBLIC: Allow for any initialization.
| |
| isMutable | back to summary |
|---|---|
| public boolean isMutable() Implements org. Doc from org. PUBLIC: If the converter converts the value to a mutable value, i.e. a value that can have its' parts changed without being replaced, then it must return true. If the value is not mutable, cannot be changed without replacing the whole value then false must be returned. This is used within the UnitOfWork to determine how to clone.
| |