1 20 package org.enhydra.dods.cache; 21 22 30 public class Condition { 31 32 35 protected int columnIndex; 36 37 40 protected Object value; 41 42 45 46 protected String operator; 47 48 55 public Condition(int colIndex, Object value, String oper) { 56 columnIndex = colIndex; 57 this.value = value; 58 operator = oper; 59 } 60 61 68 public Condition(int colIndex, boolean value, String oper) { 69 columnIndex = colIndex; 70 this.value = new Double (value ? 1 : 0); 71 operator = oper; 72 } 73 74 81 public Condition(int colIndex, double value, String oper) { 82 columnIndex = colIndex; 83 this.value = new Double (value); 84 operator = oper; 85 } 86 87 92 public int getColumnIndex() { 93 return columnIndex; 94 } 95 96 101 public Object getValue() { 102 return value; 103 } 104 105 110 public String getOperator() { 111 return operator; 112 } 113 } 114 | Popular Tags |