public class

ValueExpression

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.ValueExpression

Class Overview

Represents an expression based on comparing an attribute to a value.
The Expression can be in one of these three formats:

  • {Attribute} {No Value Operator}
  • {Attribute} {Single Value Operator} {Value}

Example: This example performs this expression on PurchaseOrders: Total > 500

 DataObjectFactory factory = ...
 PurchaseOrderExpressionFilter filter = (PurchaseOrderExpressionFilter)factory.createDataObject(PurchaseOrderExpressionFilter.QUALIFIED_NAME);
 filter.addValueExpression("Total", ValueExpression.GREATER_THAN, new Number(500));
 DataCriteria dc = factory.createDataObject(DataCriteria.QUALIFIED_NAME);
 dc.setFilter(filter);
 List result = service.getDataList("PurchaseOrders", dc, null);
 

Java class for ValueExpression complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ValueExpression">
   <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" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 

Summary

Fields
protected String attributeName
protected String operator
protected Object value
Public Constructors
ValueExpression()
Public Methods
String getAttributeName()
Gets the value of the attributeName property.
String getOperator()
Gets the value of the operator property.
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(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 Object value

Public Constructors

public ValueExpression ()

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 Object getValue ()

Gets the value of the value property.

Returns
  • possible object is 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 (Object value)

Sets the value of the value property.

Parameters
value Allowed object is Object