Class JAXBDataFactory

java.lang.Object
org.eclipse.persistence.sdo.helper.delegates.SDODataFactoryDelegate
org.eclipse.persistence.sdo.helper.jaxb.JAXBDataFactory
All Implemented Interfaces:
DataFactory, SDODataFactory

public class JAXBDataFactory extends SDODataFactoryDelegate
This implementation of commonj.sdo.helper.DataFactory is responsible for ensuring that newly created DataObjects are assigned a JAXB aware value store.
 Type customerType = jaxbHelperContext.getType(Customer.class);
 DataObject customerDO = jaxbHelperContext.getDataFactory().create(customerType);
 customerDO.set("first-name", "Jane");

 Customer customer = jaxbHelperContext.unwrap(customerDO);
 customer.getFirstName();  // returns "Jane"