public class

InstanceCriteria

extends DataObject
java.lang.Object
   ↳ org.mule.modules.oracle.model.AbstractDataObject
     ↳ com.oracle.xmlns.svc.DataObject
       ↳ com.oracle.xmlns.svc.InstanceCriteria

Class Overview

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>
 

Summary

Fields
protected List<ChildDataCriteria> childDataCriteria
protected DataObject dataObjectInstanceAttributes
protected List<String> partialAttribute
protected String partialAttributeMode
Public Constructors
InstanceCriteria()
Public Methods
List<ChildDataCriteria> getChildDataCriteria()
Gets the value of the childDataCriteria property.
DataObject getDataObjectInstanceAttributes()
Gets the value of the dataObjectInstanceAttributes property.
List<String> getPartialAttribute()
Gets the value of the partialAttribute property.
String getPartialAttributeMode()
Gets the value of the partialAttributeMode property.
void setChildDataCriteria(List<ChildDataCriteria> childDataCriteria)
Sets the value of the childDataCriteria property.
void setDataObjectInstanceAttributes(DataObject value)
Sets the value of the dataObjectInstanceAttributes property.
void setPartialAttribute(List<String> partialAttribute)
Sets the value of the partialAttribute property.
void setPartialAttributeMode(String value)
Sets the value of the partialAttributeMode property.
[Expand]
Inherited Methods
From class org.mule.modules.oracle.model.AbstractDataObject
From class java.lang.Object

Fields

protected List<ChildDataCriteria> childDataCriteria

protected DataObject dataObjectInstanceAttributes

protected List<String> partialAttribute

protected String partialAttributeMode

Public Constructors

public InstanceCriteria ()

Public Methods

public List<ChildDataCriteria> getChildDataCriteria ()

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

public DataObject getDataObjectInstanceAttributes ()

Gets the value of the dataObjectInstanceAttributes property.

Returns

public List<String> getPartialAttribute ()

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

public String getPartialAttributeMode ()

Gets the value of the partialAttributeMode property.

Returns
  • possible object is String

public void setChildDataCriteria (List<ChildDataCriteria> childDataCriteria)

Sets the value of the childDataCriteria property.

Parameters
childDataCriteria Allowed object is ChildDataCriteria

public void setDataObjectInstanceAttributes (DataObject value)

Sets the value of the dataObjectInstanceAttributes property.

Parameters
value Allowed object is DataObject

public void setPartialAttribute (List<String> partialAttribute)

Sets the value of the partialAttribute property.

Parameters
partialAttribute Allowed object is String

public void setPartialAttributeMode (String value)

Sets the value of the partialAttributeMode property.

Parameters
value Allowed object is String