public class

MultiValueExpression

extends Expression
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

Class Overview

Represents an expression based on a set of values.
The Expression can be in the format:

  • {Attribute} {List Value Operator} {Value1, Value2, Value3, ...}

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>
 

Summary

Fields
protected String attributeName
protected String operator
protected List<Object> value
Public Constructors
MultiValueExpression()
Public Methods
String getAttributeName()
Gets the value of the attributeName property.
String getOperator()
Gets the value of the operator property.
List<Object> getValue()
Gets the value of the value property.
void setAttributeName(String value)
Sets the value of the attributeName property.
void setOperator(String value)
Sets the value of the operator property.
void setValue(List<Object> value)
Sets the value of the value property.
[Expand]
Inherited Methods
From class org.mule.modules.oracle.model.AbstractDataObject
From class java.lang.Object

Fields

protected String attributeName

protected String operator

protected List<Object> value

Public Constructors

public MultiValueExpression ()

Public Methods

public String getAttributeName ()

Gets the value of the attributeName property.

Returns
  • possible object is String

public String getOperator ()

Gets the value of the operator property.

Returns
  • possible object is String

public List<Object> getValue ()

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

public void setAttributeName (String value)

Sets the value of the attributeName property.

Parameters
value Allowed object is String

public void setOperator (String value)

Sets the value of the operator property.

Parameters
value Allowed object is String

public void setValue (List<Object> value)

Sets the value of the value property.

Parameters
value Allowed object is Object