1 package org.enhydra.shark.corba.poa; 2 3 import org.enhydra.shark.corba.ExpressionBuilders.ProcessIteratorExpressionBuilder; 4 import org.enhydra.shark.corba.ExpressionBuilders.ProcessIteratorExpressionBuilderPOA; 5 import org.omg.CORBA.Any ; 6 import org.omg.CORBA.ORB ; 7 import org.omg.WfBase.BaseException; 8 9 14 public class ProcessIteratorExpressionBuilderCORBA extends 15 ProcessIteratorExpressionBuilderPOA { 16 17 org.enhydra.shark.api.common.ProcessIteratorExpressionBuilder myEB; 18 19 public ProcessIteratorExpressionBuilderCORBA(org.enhydra.shark.api.common.ProcessIteratorExpressionBuilder eb) { 20 this.myEB = eb; 21 } 23 24 public boolean isComplete() { 25 return myEB.isComplete(); 26 } 27 28 public String toSQL() { 29 return myEB.toSQL(); 30 } 31 32 public String toScript() { 33 return myEB.toScript(); 34 } 35 36 public String toExpression() { 37 return myEB.toExpression(); 38 } 39 40 public ProcessIteratorExpressionBuilder and() { 41 myEB.and(); 42 return _this(); 43 } 44 45 public ProcessIteratorExpressionBuilder or() { 46 myEB.or(); 47 return _this(); 48 } 49 50 public ProcessIteratorExpressionBuilder not() { 51 myEB.not(); 52 return _this(); 53 } 54 55 public ProcessIteratorExpressionBuilder addPackageIdEquals(String exp) { 56 myEB.addPackageIdEquals(exp); 57 return _this(); 58 } 59 60 public ProcessIteratorExpressionBuilder addProcessDefIdEquals(String exp) { 61 myEB.addProcessDefIdEquals(exp); 62 return _this(); 63 } 64 65 public ProcessIteratorExpressionBuilder addMgrNameEquals(String exp) { 66 myEB.addMgrNameEquals(exp); 67 return _this(); 68 } 69 70 public ProcessIteratorExpressionBuilder addVersionEquals(String exp) { 71 myEB.addVersionEquals(exp); 72 return _this(); 73 } 74 75 public ProcessIteratorExpressionBuilder addIsMgrEnabled() { 76 myEB.addIsMgrEnabled(); 77 return _this(); 78 } 79 80 public ProcessIteratorExpressionBuilder addStateEquals(String arg) { 81 myEB.addStateEquals(arg); 82 return _this(); 83 } 84 85 public ProcessIteratorExpressionBuilder addStateStartsWith(String arg) { 86 myEB.addStateStartsWith(arg); 87 return _this(); 88 } 89 90 public ProcessIteratorExpressionBuilder addIdEquals(String arg) { 91 myEB.addIdEquals(arg); 92 return _this(); 93 } 94 95 public ProcessIteratorExpressionBuilder addNameEquals(String arg) { 96 myEB.addNameEquals(arg); 97 return _this(); 98 } 99 100 public ProcessIteratorExpressionBuilder addPriorityEquals(int arg) { 101 myEB.addPriorityEquals(arg); 102 return _this(); 103 } 104 105 public ProcessIteratorExpressionBuilder addDescriptionEquals(String arg) { 106 myEB.addDescriptionEquals(arg); 107 return _this(); 108 } 109 110 public ProcessIteratorExpressionBuilder addDescriptionContains(String arg) { 111 myEB.addDescriptionContains(arg); 112 return _this(); 113 } 114 115 public ProcessIteratorExpressionBuilder addRequesterIdEquals(String arg) { 116 myEB.addRequesterIdEquals(arg); 117 return _this(); 118 } 119 120 public ProcessIteratorExpressionBuilder addRequesterUsernameEquals(String arg) { 121 myEB.addRequesterUsernameEquals(arg); 122 return _this(); 123 } 124 125 public ProcessIteratorExpressionBuilder addCreatedTimeEquals(long arg) { 126 myEB.addCreatedTimeEquals(arg); 127 return _this(); 128 } 129 130 public ProcessIteratorExpressionBuilder addCreatedTimeBefore(long arg) { 131 myEB.addCreatedTimeBefore(arg); 132 return _this(); 133 } 134 135 public ProcessIteratorExpressionBuilder addCreatedTimeAfter(long arg) { 136 myEB.addCreatedTimeAfter(arg); 137 return _this(); 138 } 139 140 public ProcessIteratorExpressionBuilder addStartTimeEquals(long arg) { 141 myEB.addStartTimeEquals(arg); 142 return _this(); 143 } 144 145 public ProcessIteratorExpressionBuilder addStartTimeBefore(long arg) { 146 myEB.addStartTimeBefore(arg); 147 return _this(); 148 } 149 150 public ProcessIteratorExpressionBuilder addStartTimeAfter(long arg) { 151 myEB.addStartTimeAfter(arg); 152 return _this(); 153 } 154 155 public ProcessIteratorExpressionBuilder addLastStateTimeEquals(long arg) { 156 myEB.addLastStateTimeEquals(arg); 157 return _this(); 158 } 159 160 public ProcessIteratorExpressionBuilder addLastStateTimeBefore(long arg) { 161 myEB.addLastStateTimeBefore(arg); 162 return _this(); 163 } 164 165 public ProcessIteratorExpressionBuilder addLastStateTimeAfter(long arg) { 166 myEB.addLastStateTimeAfter(arg); 167 return _this(); 168 } 169 170 public ProcessIteratorExpressionBuilder addActiveActivitiesCountEquals(long arg) { 171 return _this(); 173 } 174 175 public ProcessIteratorExpressionBuilder addActiveActivitiesCountGreaterThan(long arg) { 176 return _this(); 178 } 179 180 public ProcessIteratorExpressionBuilder addActiveActivitiesCountLessThan(long arg) { 181 return _this(); 183 } 184 185 public ProcessIteratorExpressionBuilder addVariableAnyEquals(String vName, 186 Any vValue) throws BaseException { 187 try { 188 myEB.addVariableEquals(vName, 189 SharkCORBAUtilities.extractValueFromAny(vValue)); 190 } catch (Exception ex) { 191 throw new BaseException(); 192 } 193 return _this(); 194 } 195 196 public ProcessIteratorExpressionBuilder addVariableStrEquals(String vName, 197 String vValue) { 198 myEB.addVariableEquals(vName, vValue); 199 return _this(); 200 } 201 202 public ProcessIteratorExpressionBuilder addVariableLngEquals(String vName, 203 long vValue) { 204 myEB.addVariableEquals(vName, vValue); 205 return _this(); 206 } 207 208 public ProcessIteratorExpressionBuilder addVariableLngGreaterThan(String vName, 209 long vValue) { 210 myEB.addVariableGreaterThan(vName, vValue); 211 return _this(); 212 } 213 214 public ProcessIteratorExpressionBuilder addVariableLngLessThan(String vName, 215 long vValue) { 216 myEB.addVariableLessThan(vName, vValue); 217 return _this(); 218 } 219 220 public ProcessIteratorExpressionBuilder addVariableDblEquals(String vName, 221 double vValue) { 222 myEB.addVariableEquals(vName, vValue); 223 return _this(); 224 } 225 226 public ProcessIteratorExpressionBuilder addVariableDblGreaterThan(String vName, 227 double vValue) { 228 myEB.addVariableGreaterThan(vName, vValue); 229 return _this(); 230 } 231 232 public ProcessIteratorExpressionBuilder addVariableDblLessThan(String vName, 233 double vValue) { 234 myEB.addVariableLessThan(vName, vValue); 235 return _this(); 236 } 237 238 public ProcessIteratorExpressionBuilder addExpressionStr(String exp) { 239 myEB.addExpression(exp); 240 return _this(); 241 } 242 243 public void disconnect() { 244 246 } 247 248 public ProcessIteratorExpressionBuilder addExpression(ProcessIteratorExpressionBuilder eb) { 249 myEB.addExpression((org.enhydra.shark.api.common.ProcessIteratorExpressionBuilder)eb.getTheImpl().extract_Value()); 250 return _this(); 251 } 252 253 public Any getTheImpl() { 254 Any ret = this._orb().create_any(); 255 ret.insert_Value(myEB); 256 return ret; 257 } 258 259 public ProcessIteratorExpressionBuilder setOrderByMgrName(boolean ascending) { 260 myEB.setOrderByMgrName(ascending); 261 return _this(); 262 } 263 264 public ProcessIteratorExpressionBuilder setOrderById(boolean ascending) { 265 myEB.setOrderById(ascending); 266 return _this(); 267 } 268 269 public ProcessIteratorExpressionBuilder setOrderByName(boolean ascending) { 270 myEB.setOrderByName(ascending); 271 return _this(); 272 } 273 274 public ProcessIteratorExpressionBuilder setOrderByState(boolean ascending) { 275 myEB.setOrderByState(ascending); 276 return _this(); 277 } 278 279 public ProcessIteratorExpressionBuilder setOrderByPriority(boolean ascending) { 280 myEB.setOrderByPriority(ascending); 281 return _this(); 282 } 283 284 public ProcessIteratorExpressionBuilder setOrderByCreatedTime(boolean ascending) { 285 myEB.setOrderByCreatedTime(ascending); 286 return _this(); 287 } 288 289 public ProcessIteratorExpressionBuilder setOrderByStartTime(boolean ascending) { 290 myEB.setOrderByStartTime(ascending); 291 return _this(); 292 } 293 294 public ProcessIteratorExpressionBuilder setOrderByLastStateTime(boolean ascending) { 295 myEB.setOrderByLastStateTime(ascending); 296 return _this(); 297 } 298 299 public ProcessIteratorExpressionBuilder setOrderByResourceRequesterId(boolean ascending) { 300 myEB.setOrderByResourceRequesterId(ascending); 301 return _this(); 302 } 303 304 } | Popular Tags |