1   /*
2    * PRELYTIS.
3    * Copyright 2007, PRELYTIS S.A., and individual contributors
4    * as indicated by the @author tags. See the copyright.txt file in the
5    * distribution for a full listing of individual contributors.
6    *
7    * This is free software; you can redistribute it and/or modify it
8    * under the terms of the GNU Lesser General Public License as
9    * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
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  }