java.lang.Object | |||
↳ | org.mule.modules.oracle.model.AbstractDataObject | ||
↳ | com.oracle.xmlns.svc.DataObject | ||
↳ | com.oracle.xmlns.svc.InstanceCriteria |
Represents a criteria applied on a specific DataObject
instance.
The InstanceCriteria
allows partial attributes
and child data criteria to be applied to specific DataObject
instances returned by a oracle.svc.DataSourceService DataSourceService.
This is an advanced feature useful when fetching documents for use by UI 'tree' structures, where some child nodes of the document are expanded and other are not.
One such object should be created for each DataObject
instance that
requires a special partial attribute list or a special child data criteria.
Values in this object override values specified in the DataCriteria
object.
Example: Query purchase orders and return only the "Description" attribute for PoNumber 5, and "Status" for PoNumber 10.
DataObjectFactory fac = ... DataCriteria dc = (DataCriteria)fac.createDataObject(DataCriteria.QUALIFIED_NAME); dc.setFetchIndex(0); dc.setFetchSize(100); InstanceCriteria ins1 = dc.addInstanceCriteria(); PurchaseOrder po1 = (PurchaseOrder)fac.createDataObject(PurchaserOder.QUALIFIED_NAME); po1.setPoNumber(5); ins1.setDataObjectInstanceAttributes(po1); List partialList1 = new ArrayList(1); partialList1.add("Description"); ins1.setPartialAttribute(partialList1); InstanceCriteria ins2 = dc.addInstanceCriteria(); PurchaseOrder po2 = (PurchaseOrder)fac.createDataObject(PurchaserOder.QUALIFIED_NAME); po1.setPoNumber(10); ins2.setDataObjectInstanceAttributes(po2); List partialList1 = new ArrayList(2); partialList2.add("Status"); ins2.setPartialAttribute(partialList2); List list = svc.getDataList("PurchaseOrders", dc);
Java class for InstanceCriteria complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="InstanceCriteria"> <complexContent> <extension base="{http://xmlns.oracle.com/svc}DataObject"> <sequence> <element name="DataObjectInstanceAttributes" type="{http://xmlns.oracle.com/svc}DataObject" minOccurs="0"/> <element name="PartialAttributeMode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="PartialAttribute" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> <element name="ChildDataCriteria" type="{http://xmlns.oracle.com/svc}ChildDataCriteria" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
childDataCriteria | |||||||||||
dataObjectInstanceAttributes | |||||||||||
partialAttribute | |||||||||||
partialAttributeMode |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the value of the childDataCriteria property.
| |||||||||||
Gets the value of the dataObjectInstanceAttributes property.
| |||||||||||
Gets the value of the partialAttribute property.
| |||||||||||
Gets the value of the partialAttributeMode property.
| |||||||||||
Sets the value of the childDataCriteria property.
| |||||||||||
Sets the value of the dataObjectInstanceAttributes property.
| |||||||||||
Sets the value of the partialAttribute property.
| |||||||||||
Sets the value of the partialAttributeMode property.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.mule.modules.oracle.model.AbstractDataObject
| |||||||||||
From class
java.lang.Object
|
Gets the value of the childDataCriteria property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the childDataCriteria property.
For example, to add a new item, do as follows:
getChildDataCriteria().add(newItem);
Objects of the following type(s) are allowed in the list
ChildDataCriteria
Gets the value of the dataObjectInstanceAttributes property.
DataObject
Gets the value of the partialAttribute property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the partialAttribute property.
For example, to add a new item, do as follows:
getPartialAttribute().add(newItem);
Objects of the following type(s) are allowed in the list String
Gets the value of the partialAttributeMode property.
Sets the value of the childDataCriteria property.
childDataCriteria | Allowed object is
ChildDataCriteria
|
---|
Sets the value of the dataObjectInstanceAttributes property.
value | Allowed object is
DataObject
|
---|
Sets the value of the partialAttribute property.
partialAttribute | Allowed object is String |
---|
Sets the value of the partialAttributeMode property.
value | Allowed object is String |
---|