1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.synchronoss.cpo;
22
23
24
25
26
27
28 public interface CpoWhere {
29
30 static final int COMP_NONE = -1;
31 static final int COMP_EQ = 0;
32 static final int COMP_LT = 1;
33 static final int COMP_GT = 2;
34 static final int COMP_NEQ = 3;
35 static final int COMP_IN = 4;
36 static final int COMP_LIKE = 5;
37 static final int COMP_LTEQ = 6;
38 static final int COMP_GTEQ = 7;
39 static final int COMP_EXISTS = 8;
40 static final int COMP_ISNULL = 9;
41 static final int LOGIC_NONE = -1;
42 static final int LOGIC_AND = 0;
43 static final int LOGIC_OR = 1;
44
45 public void setComparison(int comp);
46
47 public int getComparison();
48
49 public void setLogical(int log);
50
51 public int getLogical();
52
53 public void setAttribute(String attr);
54
55 public String getAttribute();
56
57 public void setRightAttribute(String attr);
58
59 public String getRightAttribute();
60
61 public void setValue(Object val);
62
63 public Object getValue();
64
65 public boolean getNot();
66
67 public void setNot(boolean b);
68
69 public void addWhere(CpoWhere cw) throws CpoException;
70
71 public void setAttributeFunction(String s);
72
73 public String getAttributeFunction();
74
75 public void setValueFunction(String s);
76
77 public String getValueFunction();
78
79 public void setRightAttributeFunction(String s);
80
81 public String getRightAttributeFunction();
82
83 public void setStaticValue(String staticValue);
84
85 public String getStaticValue();
86
87 public boolean isLeaf();
88
89
90
91
92
93
94 public String getName();
95
96
97
98
99
100
101 public void setName(String s);
102 }