Class JAXBXMLHelper
java.lang.Object
org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegate
org.eclipse.persistence.sdo.helper.jaxb.JAXBXMLHelper
- All Implemented Interfaces:
XMLHelper
,SDOXMLHelper
This implementation of commonj.sdo.helper.XMLHelper is responsible for
ensuring that newly unmarshalled DataObjects are assigned a JAXB aware
value store.
XMLHelper xmlHelper = jaxbHelperContext.getXMLHelper(); XMLDocument xmlDocument = xmlHelper.load(xml); DataObject customerDO = xmlDocument.getRootObject(); Customer customer = jaxbHelperContext.unwrap(customerDO);
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJAXBXMLHelper
(HelperContext helperContext) Create a new instance of JAXBXMLHelperJAXBXMLHelper
(HelperContext helperContext, ClassLoader classLoader) Create a new instance of JAXBXMLHelper -
Method Summary
Modifier and TypeMethodDescriptionINTERNAL: Return the helperContext that this instance is associated with.Methods inherited from class org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegate
addDescriptors, createDocument, getLoader, getTopLinkProject, getXmlContext, getXmlConversionManager, getXmlMarshaller, getXmlUnmarshaller, initializeDescriptor, load, load, load, load, load, load, reset, save, save, save, save, save, serialize, setHelperContext, setLoader, setTimeZone, setTimeZoneQualified, setTopLinkProject, setXmlContext, setXmlMarshaller, setXmlUnmarshaller
-
Constructor Details
-
JAXBXMLHelper
Create a new instance of JAXBXMLHelper- Parameters:
helperContext
- - The HelperContext used to get this XMLHelper.
-
JAXBXMLHelper
Create a new instance of JAXBXMLHelper- Parameters:
helperContext
- - The HelperContext used to get this XMLHelper.classLoader
- - The ClassLoader containing the generated SDO classes/interfaces (if any).
-
-
Method Details
-
getHelperContext
Description copied from interface:SDOXMLHelper
INTERNAL: Return the helperContext that this instance is associated with.- Specified by:
getHelperContext
in interfaceSDOXMLHelper
- Overrides:
getHelperContext
in classSDOXMLHelperDelegate
- Returns:
-