org.eclipse.persistence.sdo.helper.jaxb
Class JAXBXMLHelper
java.lang.Object
org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegate
org.eclipse.persistence.sdo.helper.jaxb.JAXBXMLHelper
- All Implemented Interfaces:
- XMLHelper, SDOXMLHelper
public class JAXBXMLHelper
- extends SDOXMLHelperDelegate
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);
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, setHelperContext, setLoader, setTimeZone, setTimeZoneQualified, setTopLinkProject, setXmlContext, setXmlMarshaller, setXmlUnmarshaller |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBXMLHelper
public JAXBXMLHelper(HelperContext helperContext)
- Create a new instance of JAXBXMLHelper
- Parameters:
helperContext
- - The HelperContext used to get this XMLHelper.
JAXBXMLHelper
public JAXBXMLHelper(HelperContext helperContext,
java.lang.ClassLoader classLoader)
- 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).
getHelperContext
public JAXBHelperContext getHelperContext()
- Description copied from interface:
SDOXMLHelper
- INTERNAL:
Return the helperContext that this instance is associated with.
- Specified by:
getHelperContext
in interface SDOXMLHelper
- Overrides:
getHelperContext
in class SDOXMLHelperDelegate
- Returns: