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);
 
  • Constructor Details

    • 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, 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 Details