1 5 package com.opensymphony.workflow.query; 6 7 import java.io.Serializable ; 8 9 10 20 public class WorkflowExpressionQuery implements Serializable { 21 23 public static final int SORT_NONE = 0; 24 public static final int SORT_ASC = 1; 25 public static final int SORT_DESC = -1; 26 27 29 private Expression expression = null; 30 private int orderBy; 31 private int sortOrder; 32 33 35 public WorkflowExpressionQuery() { 36 } 37 38 41 public WorkflowExpressionQuery(Expression expression) { 42 this.expression = expression; 43 } 44 45 47 public Expression getExpression() { 48 return expression; 49 } 50 51 public void setOrderBy(int orderBy) { 52 this.orderBy = orderBy; 53 } 54 55 public int getOrderBy() { 56 return orderBy; 57 } 58 59 public void setSortOrder(int sortOrder) { 60 this.sortOrder = sortOrder; 61 } 62 63 public int getSortOrder() { 64 return sortOrder; 65 } 66 } 67 | Popular Tags |