1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.jdbc4olap.xmla;
24
25 import java.util.List;
26
27 public class QueryFilter {
28
29 private QueryFilterOperand leftOp;
30 private String operator;
31 private QueryFilterOperand rightOp;
32
33 public QueryFilter() {
34 this.leftOp = null;
35 this.operator = null;
36 this.rightOp = null;
37 }
38
39 public String getOperator() {
40 return operator;
41 }
42
43 public void setOperator(final String operator) {
44 this.operator = operator;
45 }
46
47 public QueryFilterOperand getLeftOp() {
48 return leftOp;
49 }
50
51 public void setLeftOp(final QueryFilterOperand leftOp) {
52 this.leftOp = leftOp;
53 }
54
55 public void setLeftOp(final QueryColumn col) {
56 this.leftOp = new QueryFilterOperand();
57 this.leftOp.setCol(col);
58 }
59
60 public void setLeftOp(final List<String> valList) {
61 this.leftOp = new QueryFilterOperand();
62 this.leftOp.setValList(valList);
63 }
64
65 public QueryFilterOperand getRightOp() {
66 return rightOp;
67 }
68
69 public void setRightOp(final QueryFilterOperand rightOp) {
70 this.rightOp = rightOp;
71 }
72
73 public void setRightOp(final QueryColumn col) {
74 this.rightOp = new QueryFilterOperand();
75 this.rightOp.setCol(col);
76 }
77
78 public void setRightOp(final List<String> valList) {
79 this.rightOp = new QueryFilterOperand();
80 this.rightOp.setValList(valList);
81 }
82
83 }