public class JAXBDataFactory extends SDODataFactoryDelegate
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"
Constructor and Description |
---|
JAXBDataFactory(commonj.sdo.helper.HelperContext helperContext) |
Modifier and Type | Method and Description |
---|---|
commonj.sdo.DataObject |
create(commonj.sdo.Type type)
Return a new DataObject of the specified Type.
|
JAXBHelperContext |
getHelperContext()
INTERNAL:
Return the current helperContext associated with this delegate.
|
create, create, setHelperContext
public JAXBDataFactory(commonj.sdo.helper.HelperContext helperContext)
public JAXBHelperContext getHelperContext()
SDODataFactoryDelegate
getHelperContext
in interface SDODataFactory
getHelperContext
in class SDODataFactoryDelegate
public commonj.sdo.DataObject create(commonj.sdo.Type type)
create
in interface commonj.sdo.helper.DataFactory
create
in class SDODataFactoryDelegate
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference