|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.sdo.helper.jaxb.JAXBValueStore
public class JAXBValueStore
The JAXBValueStore enables a DataObject to access data from a POJO. The link between an SDO property and a POJO property is through their XML representation. For the POJO property this corresponds to its JAXB mapping.
Field Summary | |
---|---|
private SDODataObject |
dataObject |
private XMLDescriptor |
descriptor |
private java.lang.Object |
entity |
private JAXBHelperContext |
jaxbHelperContext |
private java.util.Map<Property,JAXBListWrapper> |
listWrappers |
Constructor Summary | |
---|---|
|
JAXBValueStore(JAXBHelperContext aJAXBHelperContext, java.lang.Object anEntity) |
private |
JAXBValueStore(JAXBHelperContext aJAXBHelperContext, java.lang.Object anEntity, XMLDescriptor aDescriptor, SDODataObject aDataObject, java.util.Map<Property,JAXBListWrapper> aMap) |
|
JAXBValueStore(JAXBHelperContext aJAXBHelperContext, SDOType sdoType) |
Method Summary | |
---|---|
ValueStore |
copy() Get a shallow copy of the original ValueStore. |
(package private) SDODataObject |
getDataObject() Return the DataObject associated with this value store. |
java.lang.Object |
getDeclaredProperty(int propertyIndex) Get the value from the wrapped POJO, wrapping in DataObjects as necessary. |
(package private) java.lang.Object |
getEntity() Return the POJO associated with this value store. |
(package private) XMLDescriptor |
getEntityDescriptor() Return the XMLDescriptor associated with this value store. |
(package private) JAXBHelperContext |
getJAXBHelperContext() Return the JAXBHelperContext. |
(package private) DatabaseMapping |
getJAXBMappingForProperty(SDOProperty sdoProperty) Return the JAXB mapping for the SDO property. |
java.lang.Object |
getOpenContentProperty(Property property) |
void |
initialize(DataObject aDataObject) Initialize the value store with its associated DataObject. |
boolean |
isSetDeclaredProperty(int propertyIndex) For isMany=false properties return true if not null. |
boolean |
isSetOpenContentProperty(Property property) |
void |
setDeclaredProperty(int propertyIndex, java.lang.Object value) Set the value on the underlying POJO, unwrapping values as necessary. |
void |
setManyProperty(Property property, java.lang.Object value) |
void |
setOpenContentProperty(Property property, java.lang.Object value) |
void |
unsetDeclaredProperty(int propertyIndex) For isMany=false properties set the value to null. |
void |
unsetOpenContentProperty(Property property) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private JAXBHelperContext jaxbHelperContext
private java.lang.Object entity
private XMLDescriptor descriptor
private SDODataObject dataObject
private java.util.Map<Property,JAXBListWrapper> listWrappers
Constructor Detail |
---|
public JAXBValueStore(JAXBHelperContext aJAXBHelperContext, SDOType sdoType)
public JAXBValueStore(JAXBHelperContext aJAXBHelperContext, java.lang.Object anEntity)
private JAXBValueStore(JAXBHelperContext aJAXBHelperContext, java.lang.Object anEntity, XMLDescriptor aDescriptor, SDODataObject aDataObject, java.util.Map<Property,JAXBListWrapper> aMap)
Method Detail |
---|
SDODataObject getDataObject()
java.lang.Object getEntity()
XMLDescriptor getEntityDescriptor()
JAXBHelperContext getJAXBHelperContext()
public void initialize(DataObject aDataObject)
initialize
in interface ValueStore
public java.lang.Object getDeclaredProperty(int propertyIndex)
getDeclaredProperty
in interface ValueStore
public void setDeclaredProperty(int propertyIndex, java.lang.Object value)
setDeclaredProperty
in interface ValueStore
public boolean isSetDeclaredProperty(int propertyIndex)
isSetDeclaredProperty
in interface ValueStore
public void unsetDeclaredProperty(int propertyIndex)
unsetDeclaredProperty
in interface ValueStore
public java.lang.Object getOpenContentProperty(Property property)
getOpenContentProperty
in interface ValueStore
public void setOpenContentProperty(Property property, java.lang.Object value)
setOpenContentProperty
in interface ValueStore
public boolean isSetOpenContentProperty(Property property)
isSetOpenContentProperty
in interface ValueStore
public void unsetOpenContentProperty(Property property)
unsetOpenContentProperty
in interface ValueStore
public void setManyProperty(Property property, java.lang.Object value)
setManyProperty
in interface ValueStore
public ValueStore copy()
ValueStore
copy
in interface ValueStore
DatabaseMapping getJAXBMappingForProperty(SDOProperty sdoProperty)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |