Module org.eclipse.persistence.moxy
Class JAXBElementRootConverter
java.lang.Object
org.eclipse.persistence.internal.jaxb.JAXBElementRootConverter
- All Implemented Interfaces:
Serializable
,CoreConverter<DatabaseMapping,
,Session> Converter
,XMLConverter
Convert between instances of XMLRoot and JAXBElement
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertDataValueToObjectValue
(Object dataValue, Session session) PUBLIC: Convert the databases' data representation of the value to the object's representation.convertDataValueToObjectValue
(Object dataValue, Session session, XMLUnmarshaller unmarshaller) convertObjectValueToDataValue
(Object objectValue, Session session) PUBLIC: Convert the object's representation of the value to the databases' data representation.convertObjectValueToDataValue
(Object objectValue, Session session, XMLMarshaller marshaller) void
initialize
(DatabaseMapping mapping, Session session) PUBLIC: Allow for any initialization.boolean
PUBLIC: If the converter converts the value to a mutable value, i.e.void
setNestedConverter
(XMLConverter nestedConverter)
-
Constructor Details
-
JAXBElementRootConverter
-
-
Method Details
-
getNestedConverter
-
setNestedConverter
-
initialize
Description copied from interface:Converter
PUBLIC: Allow for any initialization.- Specified by:
initialize
in interfaceConverter
- Specified by:
initialize
in interfaceCoreConverter<DatabaseMapping,
Session>
-
convertDataValueToObjectValue
Description copied from interface:Converter
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.- Specified by:
convertDataValueToObjectValue
in interfaceConverter
- Specified by:
convertDataValueToObjectValue
in interfaceCoreConverter<DatabaseMapping,
Session>
-
convertDataValueToObjectValue
public Object convertDataValueToObjectValue(Object dataValue, Session session, XMLUnmarshaller unmarshaller) - Specified by:
convertDataValueToObjectValue
in interfaceXMLConverter
-
convertObjectValueToDataValue
Description copied from interface:Converter
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.- Specified by:
convertObjectValueToDataValue
in interfaceConverter
- Specified by:
convertObjectValueToDataValue
in interfaceCoreConverter<DatabaseMapping,
Session>
-
convertObjectValueToDataValue
public Object convertObjectValueToDataValue(Object objectValue, Session session, XMLMarshaller marshaller) - Specified by:
convertObjectValueToDataValue
in interfaceXMLConverter
-
isMutable
public boolean isMutable()Description copied from interface:Converter
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.
-