EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.sdo.helper.jaxb
Class JAXBXMLHelper

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegate
      extended by 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);
 


Field Summary
 
Fields inherited from interface commonj.sdo.helper.XMLHelper
INSTANCE
 
Constructor Summary
JAXBXMLHelper(HelperContext helperContext)
          Create a new instance of JAXBXMLHelper
JAXBXMLHelper(HelperContext helperContext, java.lang.ClassLoader classLoader)
          Create a new instance of JAXBXMLHelper
 
Method Summary
 JAXBHelperContext getHelperContext()
          INTERNAL: 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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).
Method Detail

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:

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference