java.lang.Object | ||||
↳ | org.mule.modules.oracle.model.AbstractDataObject | |||
↳ | com.oracle.xmlns.svc.DataObject | |||
↳ | com.oracle.xmlns.svc.expression.Expression | |||
↳ | com.oracle.xmlns.svc.expression.MultiValueExpression |
Represents an expression based on a set of values.
The Expression can be in the format:
Example: This example performs this expression on PurchaseOrders: Total IN 500, 600, 700
DataObjectFactory factory = ...
PurchaseOrderExpressionFilter filter = (PurchaseOrderExpressionFilter)factory.createDataObject(PurchaseOrderExpressionFilter.QUALIFIED_NAME);
ArrayList values = new ArrayList();
values.add(new Number(500));
values.add(new Number(600));
values.add(new Number(700));
filter.addMultiValueExpression("Total", MultiValueExpression.IN, values);
DataCriteria dc = factory.createDataObject(DataCriteria.QUALIFIED_NAME);
dc.setFilter(filter);
DataObject rootSDO = service.queryDataSource("PurchaseOrders", dc, null);
List result = (rootSDO==null)?null:(List)rootSDO.get("PurchaseOrders");
Java class for MultiValueExpression complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MultiValueExpression"> <complexContent> <extension base="{http://xmlns.oracle.com/svc/expression}Expression"> <sequence> <element name="AttributeName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="Operator" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="Value" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
attributeName | |||||||||||
operator | |||||||||||
value |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the value of the attributeName property.
| |||||||||||
Gets the value of the operator property.
| |||||||||||
Gets the value of the value property.
| |||||||||||
Sets the value of the attributeName property.
| |||||||||||
Sets the value of the operator property.
| |||||||||||
Sets the value of the value property.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.mule.modules.oracle.model.AbstractDataObject
| |||||||||||
From class
java.lang.Object
|
Gets the value of the attributeName property.
Gets the value of the operator property.
Gets the value of the value 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 value property.
For example, to add a new item, do as follows:
getValue().add(newItem);
Objects of the following type(s) are allowed in the list Object
Sets the value of the attributeName property.
value | Allowed object is String |
---|
Sets the value of the operator property.
value | Allowed object is String |
---|
Sets the value of the value property.
value | Allowed object is Object |
---|