com.opensymphony.workflow.query
Class WorkflowExpressionQuery

java.lang.Object
  extended by com.opensymphony.workflow.query.WorkflowExpressionQuery
All Implemented Interfaces:
Serializable

public class WorkflowExpressionQuery
extends Object
implements Serializable

Workflow Query. A workflow expression-based query is constructed by specifying a number of expressions in the query. Currently queries can only have one operator act on them. Either the expressions are either evaluated with an OR, whereby the first expression that passes results in inclusion of a result, or with an AND, whereby all expressions must return true for a result to be included.

Author:
Christine Zimmermann
See Also:
Serialized Form

Field Summary
static int SORT_ASC
           
static int SORT_DESC
           
static int SORT_NONE
           
 
Constructor Summary
WorkflowExpressionQuery()
           
WorkflowExpressionQuery(Expression expression)
          Create a WorkflowExpressionQuery that consists of one expression.
 
Method Summary
 Expression getExpression()
           
 int getOrderBy()
           
 int getSortOrder()
           
 void setExpression(Expression expression)
           
 void setOrderBy(int orderBy)
           
 void setSortOrder(int sortOrder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SORT_NONE

public static final int SORT_NONE
See Also:
Constant Field Values

SORT_ASC

public static final int SORT_ASC
See Also:
Constant Field Values

SORT_DESC

public static final int SORT_DESC
See Also:
Constant Field Values
Constructor Detail

WorkflowExpressionQuery

public WorkflowExpressionQuery()

WorkflowExpressionQuery

public WorkflowExpressionQuery(Expression expression)
Create a WorkflowExpressionQuery that consists of one expression.

Method Detail

setExpression

public void setExpression(Expression expression)

getExpression

public Expression getExpression()

setOrderBy

public void setOrderBy(int orderBy)

getOrderBy

public int getOrderBy()

setSortOrder

public void setSortOrder(int sortOrder)

getSortOrder

public int getSortOrder()

OpenSymphony Workflow Project Page