KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > corba > ProcessIteratorExpressionBuilderCORBA


1 package org.enhydra.shark.corba;
2
3 import org.enhydra.shark.corba.ExpressionBuilders.ProcessIteratorExpressionBuilder;
4 import org.enhydra.shark.corba.ExpressionBuilders._ProcessIteratorExpressionBuilderImplBase;
5 import org.omg.CORBA.Any JavaDoc;
6 import org.omg.WfBase.BaseException;
7
8 /**
9  * ProcessIteratorExpressionBuilderCORBA
10  *
11  * @author Sasa Bojanic
12  */

13 public class ProcessIteratorExpressionBuilderCORBA extends
14                                                   _ProcessIteratorExpressionBuilderImplBase {
15
16    org.enhydra.shark.api.common.ProcessIteratorExpressionBuilder myEB;
17
18    public ProcessIteratorExpressionBuilderCORBA(org.enhydra.shark.api.common.ProcessIteratorExpressionBuilder eb) {
19       this.myEB = eb;
20    }
21
22    public boolean isComplete() {
23       return myEB.isComplete();
24    }
25
26    public String JavaDoc toSQL() {
27       return myEB.toSQL();
28    }
29
30    public String JavaDoc toScript() {
31       return myEB.toScript();
32    }
33
34    public String JavaDoc toExpression() {
35       return myEB.toExpression();
36    }
37
38    public ProcessIteratorExpressionBuilder and() {
39       myEB.and();
40       return this;
41    }
42
43    public ProcessIteratorExpressionBuilder or() {
44       myEB.or();
45       return this;
46    }
47
48    public ProcessIteratorExpressionBuilder not() {
49       myEB.not();
50       return this;
51    }
52
53    public ProcessIteratorExpressionBuilder addPackageIdEquals(String JavaDoc exp) {
54       myEB.addPackageIdEquals(exp);
55       return this;
56    }
57
58    public ProcessIteratorExpressionBuilder addProcessDefIdEquals(String JavaDoc exp) {
59       myEB.addProcessDefIdEquals(exp);
60       return this;
61    }
62
63    public ProcessIteratorExpressionBuilder addMgrNameEquals(String JavaDoc exp) {
64       myEB.addMgrNameEquals(exp);
65       return this;
66    }
67
68    public ProcessIteratorExpressionBuilder addVersionEquals(String JavaDoc exp) {
69       myEB.addVersionEquals(exp);
70       return this;
71    }
72
73    public ProcessIteratorExpressionBuilder addIsMgrEnabled() {
74       myEB.addIsMgrEnabled();
75       return this;
76    }
77
78    public ProcessIteratorExpressionBuilder addStateEquals(String JavaDoc arg) {
79       myEB.addStateEquals(arg);
80       return this;
81    }
82
83    public ProcessIteratorExpressionBuilder addStateStartsWith(String JavaDoc arg) {
84       myEB.addStateStartsWith(arg);
85       return this;
86    }
87
88    public ProcessIteratorExpressionBuilder addIdEquals(String JavaDoc arg) {
89       myEB.addIdEquals(arg);
90       return this;
91    }
92
93    public ProcessIteratorExpressionBuilder addNameEquals(String JavaDoc arg) {
94       myEB.addNameEquals(arg);
95       return this;
96    }
97
98    public ProcessIteratorExpressionBuilder addPriorityEquals(int arg) {
99       myEB.addPriorityEquals(arg);
100       return this;
101    }
102
103    public ProcessIteratorExpressionBuilder addDescriptionEquals(String JavaDoc arg) {
104       myEB.addDescriptionEquals(arg);
105       return this;
106    }
107
108    public ProcessIteratorExpressionBuilder addDescriptionContains(String JavaDoc arg) {
109       myEB.addDescriptionContains(arg);
110       return this;
111    }
112
113    public ProcessIteratorExpressionBuilder addRequesterIdEquals(String JavaDoc arg) {
114       myEB.addRequesterIdEquals(arg);
115       return this;
116    }
117    
118    public ProcessIteratorExpressionBuilder addRequesterUsernameEquals(String JavaDoc arg) {
119       myEB.addRequesterUsernameEquals(arg);
120       return this;
121    }
122    
123    public ProcessIteratorExpressionBuilder addCreatedTimeEquals(long arg) {
124       myEB.addCreatedTimeEquals(arg);
125       return this;
126    }
127
128    public ProcessIteratorExpressionBuilder addCreatedTimeBefore(long arg) {
129       myEB.addCreatedTimeBefore(arg);
130       return this;
131    }
132
133    public ProcessIteratorExpressionBuilder addCreatedTimeAfter(long arg) {
134       myEB.addCreatedTimeAfter(arg);
135       return this;
136    }
137
138    public ProcessIteratorExpressionBuilder addStartTimeEquals(long arg) {
139       myEB.addStartTimeEquals(arg);
140       return this;
141    }
142
143    public ProcessIteratorExpressionBuilder addStartTimeBefore(long arg) {
144       myEB.addStartTimeBefore(arg);
145       return this;
146    }
147
148    public ProcessIteratorExpressionBuilder addStartTimeAfter(long arg) {
149       myEB.addStartTimeAfter(arg);
150       return this;
151    }
152
153    public ProcessIteratorExpressionBuilder addLastStateTimeEquals(long arg) {
154       myEB.addLastStateTimeEquals(arg);
155       return this;
156    }
157
158    public ProcessIteratorExpressionBuilder addLastStateTimeBefore(long arg) {
159       myEB.addLastStateTimeBefore(arg);
160       return this;
161    }
162
163    public ProcessIteratorExpressionBuilder addLastStateTimeAfter(long arg) {
164       myEB.addLastStateTimeAfter(arg);
165       return this;
166    }
167
168    public ProcessIteratorExpressionBuilder addActiveActivitiesCountEquals(long arg) {
169       // FIXME: not implemented yet
170
return this;
171    }
172
173    public ProcessIteratorExpressionBuilder addActiveActivitiesCountGreaterThan(long arg) {
174       // FIXME: not implemented yet
175
return this;
176    }
177
178    public ProcessIteratorExpressionBuilder addActiveActivitiesCountLessThan(long arg) {
179       // FIXME: not implemented yet
180
return this;
181    }
182
183    public ProcessIteratorExpressionBuilder addVariableAnyEquals(String JavaDoc vName,
184                                                                 Any JavaDoc vValue) throws BaseException {
185       try {
186          myEB.addVariableEquals(vName,
187                                 SharkCORBAUtilities.extractValueFromAny(vValue));
188       } catch (Exception JavaDoc ex) {
189          throw new BaseException();
190       }
191       return this;
192    }
193
194    public ProcessIteratorExpressionBuilder addVariableStrEquals(String JavaDoc vName,
195                                                                 String JavaDoc vValue) {
196       myEB.addVariableEquals(vName, vValue);
197       return this;
198    }
199
200    public ProcessIteratorExpressionBuilder addVariableLngEquals(String JavaDoc vName,
201                                                                 long vValue) {
202       myEB.addVariableEquals(vName, vValue);
203       return this;
204    }
205
206    public ProcessIteratorExpressionBuilder addVariableLngGreaterThan(String JavaDoc vName,
207                                                                      long vValue) {
208       myEB.addVariableGreaterThan(vName, vValue);
209       return this;
210    }
211
212    public ProcessIteratorExpressionBuilder addVariableLngLessThan(String JavaDoc vName,
213                                                                   long vValue) {
214       myEB.addVariableLessThan(vName, vValue);
215       return this;
216    }
217
218    public ProcessIteratorExpressionBuilder addVariableDblEquals(String JavaDoc vName,
219                                                                 double vValue) {
220       myEB.addVariableEquals(vName, vValue);
221       return this;
222    }
223
224    public ProcessIteratorExpressionBuilder addVariableDblGreaterThan(String JavaDoc vName,
225                                                                      double vValue) {
226       myEB.addVariableGreaterThan(vName, vValue);
227       return this;
228    }
229
230    public ProcessIteratorExpressionBuilder addVariableDblLessThan(String JavaDoc vName,
231                                                                   double vValue) {
232       myEB.addVariableLessThan(vName, vValue);
233       return this;
234    }
235
236    public ProcessIteratorExpressionBuilder addExpressionStr(String JavaDoc exp) {
237       myEB.addExpression(exp);
238       return this;
239    }
240
241    public void disconnect() {
242    // TODO Auto-generated method stub
243

244    }
245
246    public ProcessIteratorExpressionBuilder addExpression(ProcessIteratorExpressionBuilder eb) {
247       myEB.addExpression((org.enhydra.shark.api.common.ProcessIteratorExpressionBuilder)eb.getTheImpl().extract_Value());
248       return this;
249    }
250
251    public Any JavaDoc getTheImpl() {
252       Any JavaDoc ret = this._orb().create_any();
253       ret.insert_Value(myEB);
254       return ret;
255    }
256
257    public ProcessIteratorExpressionBuilder setOrderByMgrName(boolean ascending) {
258       myEB.setOrderByMgrName(ascending);
259       return this;
260    }
261
262    public ProcessIteratorExpressionBuilder setOrderById(boolean ascending) {
263       myEB.setOrderById(ascending);
264       return this;
265    }
266
267    public ProcessIteratorExpressionBuilder setOrderByName(boolean ascending) {
268       myEB.setOrderByName(ascending);
269       return this;
270    }
271
272    public ProcessIteratorExpressionBuilder setOrderByState(boolean ascending) {
273       myEB.setOrderByState(ascending);
274       return this;
275    }
276
277    public ProcessIteratorExpressionBuilder setOrderByPriority(boolean ascending) {
278       myEB.setOrderByPriority(ascending);
279       return this;
280    }
281
282    public ProcessIteratorExpressionBuilder setOrderByCreatedTime(boolean ascending) {
283       myEB.setOrderByCreatedTime(ascending);
284       return this;
285    }
286
287    public ProcessIteratorExpressionBuilder setOrderByStartTime(boolean ascending) {
288       myEB.setOrderByStartTime(ascending);
289       return this;
290    }
291
292    public ProcessIteratorExpressionBuilder setOrderByLastStateTime(boolean ascending) {
293       myEB.setOrderByLastStateTime(ascending);
294       return this;
295    }
296
297    public ProcessIteratorExpressionBuilder setOrderByResourceRequesterId(boolean ascending) {
298       myEB.setOrderByResourceRequesterId(ascending);
299       return this;
300    }
301
302 }
Popular Tags