Module org.eclipse.persistence.moxy
Class DomHandlerConverter
java.lang.Object
org.eclipse.persistence.internal.jaxb.DomHandlerConverter
- All Implemented Interfaces:
Serializable,CoreConverter<DatabaseMapping,,Session> Converter,XMLConverter
INTERNAL:
Purpose:Provide support for the JAXB DomHandler API through the use of an EclipseLink Converter.
Responsibilities:
- Wrap a provided instance of a DomHandler implementation.
- Invoke the createUnmarshaller method on DomHandler and to a transform on unmarshal
- Invoke the marshal method on the DomHandler on a marshal
- See Also:
-
Constructor Summary
Constructors -
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) voidinitialize(DatabaseMapping mapping, Session session) PUBLIC: Allow for any initialization.booleanPUBLIC: If the converter converts the value to a mutable value, i.e.
-
Constructor Details
-
DomHandlerConverter
-
-
Method Details
-
initialize
Description copied from interface:ConverterPUBLIC: Allow for any initialization.- Specified by:
initializein interfaceConverter- Specified by:
initializein interfaceCoreConverter<DatabaseMapping,Session>
-
convertDataValueToObjectValue
public Object convertDataValueToObjectValue(Object dataValue, Session session, XMLUnmarshaller unmarshaller) - Specified by:
convertDataValueToObjectValuein interfaceXMLConverter
-
convertObjectValueToDataValue
public Object convertObjectValueToDataValue(Object objectValue, Session session, XMLMarshaller marshaller) - Specified by:
convertObjectValueToDataValuein interfaceXMLConverter
-
isMutable
public boolean isMutable()Description copied from interface:ConverterPUBLIC: 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. -
convertDataValueToObjectValue
Description copied from interface:ConverterPUBLIC: 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:
convertDataValueToObjectValuein interfaceConverter- Specified by:
convertDataValueToObjectValuein interfaceCoreConverter<DatabaseMapping,Session>
-
convertObjectValueToDataValue
Description copied from interface:ConverterPUBLIC: 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:
convertObjectValueToDataValuein interfaceConverter- Specified by:
convertObjectValueToDataValuein interfaceCoreConverter<DatabaseMapping,Session>
-