Package com.opensymphony.workflow.query
Class FieldExpression
java.lang.Object
com.opensymphony.workflow.query.Expression
com.opensymphony.workflow.query.FieldExpression
- All Implemented Interfaces:
Serializable
Field expressions are used when constructing a workflow query on the fields
of persistent workflow instances like (START_DATE, OWNER,....).
Field expressions have three attributes. These are:
operator: This is the operator to apply on the expression.
field: The workflow field to test agains
Context: The context to search in, which can be one history, current steps, or a workflow instance.
- Author:
- Christine Zimmermann
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant for the workflow action field.static final intConstant for the workflow caller field.static final intConstant for the history steps context.static final intConstant for the workflow due date field.static final intConstant for the workflow entry context.static final intConstant for the equality operator.static final intConstant for the workflow finish date field.static final intConstant for the greater than operator.static final intConstant for the history steps context.static final intConstant for the less than operator.static final intConstant for the workflow name field.static final intConstant for the not equals operator.static final intConstant for the workflow owner field.static final intConstant for the workflow start date field.static final intConstant for the state field.static final intConstant for the workflow status field.static final intConstant for the workflow step field.Fields inherited from class com.opensymphony.workflow.query.Expression
negate -
Constructor Summary
ConstructorsConstructorDescriptionFieldExpression(int field, int context, int operator, Object value) FieldExpression(int field, int context, int operator, Object value, boolean negate) -
Method Summary
Modifier and TypeMethodDescriptionintintgetField()intgetValue()booleanisNested()voidsetContext(int context) voidsetField(int field) voidsetOperator(int operator) voidMethods inherited from class com.opensymphony.workflow.query.Expression
isNegate
-
Field Details
-
EQUALS
public static final int EQUALSConstant for the equality operator.- See Also:
-
LT
public static final int LTConstant for the less than operator.- See Also:
-
GT
public static final int GTConstant for the greater than operator.- See Also:
-
NOT_EQUALS
public static final int NOT_EQUALSConstant for the not equals operator.- See Also:
-
OWNER
public static final int OWNERConstant for the workflow owner field.- See Also:
-
START_DATE
public static final int START_DATEConstant for the workflow start date field.- See Also:
-
FINISH_DATE
public static final int FINISH_DATEConstant for the workflow finish date field.- See Also:
-
ACTION
public static final int ACTIONConstant for the workflow action field.- See Also:
-
STEP
public static final int STEPConstant for the workflow step field.- See Also:
-
CALLER
public static final int CALLERConstant for the workflow caller field.- See Also:
-
STATUS
public static final int STATUSConstant for the workflow status field.- See Also:
-
NAME
public static final int NAMEConstant for the workflow name field.- See Also:
-
STATE
public static final int STATEConstant for the state field.- See Also:
-
DUE_DATE
public static final int DUE_DATEConstant for the workflow due date field.- See Also:
-
HISTORY_STEPS
public static final int HISTORY_STEPSConstant for the history steps context. Specifying this context means that the search should be performed against the workflow steps.- See Also:
-
CURRENT_STEPS
public static final int CURRENT_STEPSConstant for the history steps context. Specifying this context means that the search should be performed against the workflow current steps.- See Also:
-
ENTRY
public static final int ENTRYConstant for the workflow entry context. Specifying this context means that the search should be performed against the workflow entries.- See Also:
-
-
Constructor Details
-
FieldExpression
public FieldExpression() -
FieldExpression
-
FieldExpression
-
-
Method Details
-
setContext
public void setContext(int context) -
getContext
public int getContext() -
setField
public void setField(int field) -
getField
public int getField() -
isNested
public boolean isNested()- Specified by:
isNestedin classExpression
-
setOperator
public void setOperator(int operator) -
getOperator
public int getOperator() -
setValue
-
getValue
-