1 package org.enhydra.shark.corba.poa; 2 3 import org.enhydra.shark.corba.ExpressionBuilders.ActivityIteratorExpressionBuilder; 4 import org.enhydra.shark.corba.ExpressionBuilders.ActivityIteratorExpressionBuilderPOA; 5 import org.omg.CORBA.Any ; 6 import org.omg.WfBase.BaseException; 7 8 13 public class ActivityIteratorExpressionBuilderCORBA extends 14 ActivityIteratorExpressionBuilderPOA { 15 16 org.enhydra.shark.api.common.ActivityIteratorExpressionBuilder myEB; 17 18 public ActivityIteratorExpressionBuilderCORBA(org.enhydra.shark.api.common.ActivityIteratorExpressionBuilder eb) { 19 this.myEB = eb; 20 } 21 22 public boolean isComplete() { 23 return myEB.isComplete(); 24 } 25 26 public String toSQL() { 27 return myEB.toSQL(); 28 } 29 30 public String toScript() { 31 return myEB.toScript(); 32 } 33 34 public String toExpression() { 35 return myEB.toExpression(); 36 } 37 38 public ActivityIteratorExpressionBuilder and() { 39 myEB.and(); 40 return _this(); 41 } 42 43 public ActivityIteratorExpressionBuilder or() { 44 myEB.or(); 45 return _this(); 46 } 47 48 public ActivityIteratorExpressionBuilder not() { 49 myEB.not(); 50 return _this(); 51 } 52 53 public ActivityIteratorExpressionBuilder addPackageIdEquals(String exp) { 54 myEB.addPackageIdEquals(exp); 55 return _this(); 56 } 57 58 public ActivityIteratorExpressionBuilder addProcessDefIdEquals(String exp) { 59 myEB.addProcessDefIdEquals(exp); 60 return _this(); 61 } 62 63 public ActivityIteratorExpressionBuilder addMgrNameEquals(String exp) { 64 myEB.addMgrNameEquals(exp); 65 return _this(); 66 } 67 68 public ActivityIteratorExpressionBuilder addVersionEquals(String exp) { 69 myEB.addVersionEquals(exp); 70 return _this(); 71 } 72 73 public ActivityIteratorExpressionBuilder addIsMgrEnabled() { 74 myEB.addIsMgrEnabled(); 75 return _this(); 76 } 77 78 public ActivityIteratorExpressionBuilder addProcessStateEquals(String arg) { 79 myEB.addProcessStateEquals(arg); 80 return _this(); 81 } 82 83 public ActivityIteratorExpressionBuilder addProcessStateStartsWith(String arg) { 84 myEB.addProcessStateStartsWith(arg); 85 return _this(); 86 } 87 88 public ActivityIteratorExpressionBuilder addProcessIdEquals(String arg) { 89 myEB.addProcessIdEquals(arg); 90 return _this(); 91 } 92 93 public ActivityIteratorExpressionBuilder addProcessNameEquals(String arg) { 94 myEB.addProcessNameEquals(arg); 95 return _this(); 96 } 97 98 public ActivityIteratorExpressionBuilder addProcessPriorityEquals(int arg) { 99 myEB.addProcessPriorityEquals(arg); 100 return _this(); 101 } 102 103 public ActivityIteratorExpressionBuilder addProcessDescriptionEquals(String arg) { 104 myEB.addProcessDescriptionEquals(arg); 105 return _this(); 106 } 107 108 public ActivityIteratorExpressionBuilder addProcessDescriptionContains(String arg) { 109 myEB.addProcessDescriptionContains(arg); 110 return _this(); 111 } 112 113 public ActivityIteratorExpressionBuilder addProcessRequesterIdEquals(String arg) { 114 myEB.addProcessRequesterIdEquals(arg); 115 return _this(); 116 } 117 118 public ActivityIteratorExpressionBuilder addProcessCreatedTimeEquals(long arg) { 119 myEB.addProcessCreatedTimeEquals(arg); 120 return _this(); 121 } 122 123 public ActivityIteratorExpressionBuilder addProcessCreatedTimeBefore(long arg) { 124 myEB.addProcessCreatedTimeBefore(arg); 125 return _this(); 126 } 127 128 public ActivityIteratorExpressionBuilder addProcessCreatedTimeAfter(long arg) { 129 myEB.addProcessCreatedTimeAfter(arg); 130 return _this(); 131 } 132 133 public ActivityIteratorExpressionBuilder addProcessStartTimeEquals(long arg) { 134 myEB.addProcessStartTimeEquals(arg); 135 return _this(); 136 } 137 138 public ActivityIteratorExpressionBuilder addProcessStartTimeBefore(long arg) { 139 myEB.addProcessStartTimeBefore(arg); 140 return _this(); 141 } 142 143 public ActivityIteratorExpressionBuilder addProcessStartTimeAfter(long arg) { 144 myEB.addProcessStartTimeAfter(arg); 145 return _this(); 146 } 147 148 public ActivityIteratorExpressionBuilder addProcessLastStateTimeEquals(long arg) { 149 myEB.addProcessLastStateTimeEquals(arg); 150 return _this(); 151 } 152 153 public ActivityIteratorExpressionBuilder addProcessLastStateTimeBefore(long arg) { 154 myEB.addProcessLastStateTimeBefore(arg); 155 return _this(); 156 } 157 158 public ActivityIteratorExpressionBuilder addProcessLastStateTimeAfter(long arg) { 159 myEB.addProcessLastStateTimeAfter(arg); 160 return _this(); 161 } 162 163 public ActivityIteratorExpressionBuilder addProcessVariableAnyEquals(String vName, 164 Any vValue) throws BaseException { 165 try { 166 myEB.addProcessVariableEquals(vName, 167 SharkCORBAUtilities.extractValueFromAny(vValue)); 168 } catch (Exception ex) { 169 throw new BaseException(); 170 } 171 return _this(); 172 } 173 174 public ActivityIteratorExpressionBuilder addProcessVariableStrEquals(String vName, 175 String vValue) { 176 myEB.addProcessVariableEquals(vName, vValue); 177 return _this(); 178 } 179 180 public ActivityIteratorExpressionBuilder addProcessVariableLngEquals(String vName, 181 long vValue) { 182 myEB.addProcessVariableEquals(vName, vValue); 183 return _this(); 184 } 185 186 public ActivityIteratorExpressionBuilder addProcessVariableLngGreaterThan(String vName, 187 long vValue) { 188 myEB.addProcessVariableGreaterThan(vName, vValue); 189 return _this(); 190 } 191 192 public ActivityIteratorExpressionBuilder addProcessVariableLngLessThan(String vName, 193 long vValue) { 194 myEB.addProcessVariableLessThan(vName, vValue); 195 return _this(); 196 } 197 198 public ActivityIteratorExpressionBuilder addProcessVariableDblEquals(String vName, 199 double vValue) { 200 myEB.addProcessVariableEquals(vName, vValue); 201 return _this(); 202 } 203 204 public ActivityIteratorExpressionBuilder addProcessVariableDblGreaterThan(String vName, 205 double vValue) { 206 myEB.addProcessVariableGreaterThan(vName, vValue); 207 return _this(); 208 } 209 210 public ActivityIteratorExpressionBuilder addProcessVariableDblLessThan(String vName, 211 double vValue) { 212 myEB.addProcessVariableLessThan(vName, vValue); 213 return _this(); 214 } 215 216 public ActivityIteratorExpressionBuilder addStateEquals(String arg) { 217 myEB.addStateEquals(arg); 218 return _this(); 219 } 220 221 public ActivityIteratorExpressionBuilder addStateStartsWith(String arg) { 222 myEB.addStateStartsWith(arg); 223 return _this(); 224 } 225 226 public ActivityIteratorExpressionBuilder addIdEquals(String arg) { 227 myEB.addIdEquals(arg); 228 return _this(); 229 } 230 231 public ActivityIteratorExpressionBuilder addNameEquals(String arg) { 232 myEB.addNameEquals(arg); 233 return _this(); 234 } 235 236 public ActivityIteratorExpressionBuilder addPriorityEquals(int arg) { 237 myEB.addPriorityEquals(arg); 238 return _this(); 239 } 240 241 public ActivityIteratorExpressionBuilder addDescriptionEquals(String arg) { 242 myEB.addDescriptionEquals(arg); 243 return _this(); 244 } 245 246 public ActivityIteratorExpressionBuilder addDescriptionContains(String arg) { 247 myEB.addDescriptionContains(arg); 248 return _this(); 249 } 250 251 public ActivityIteratorExpressionBuilder addActivatedTimeEquals(long arg) { 252 myEB.addActivatedTimeEquals(arg); 253 return _this(); 254 } 255 256 public ActivityIteratorExpressionBuilder addActivatedTimeBefore(long arg) { 257 myEB.addActivatedTimeBefore(arg); 258 return _this(); 259 } 260 261 public ActivityIteratorExpressionBuilder addActivatedTimeAfter(long arg) { 262 myEB.addActivatedTimeAfter(arg); 263 return _this(); 264 } 265 266 public ActivityIteratorExpressionBuilder addLastStateTimeEquals(long arg) { 267 myEB.addLastStateTimeEquals(arg); 268 return _this(); 269 } 270 271 public ActivityIteratorExpressionBuilder addLastStateTimeBefore(long arg) { 272 myEB.addLastStateTimeBefore(arg); 273 return _this(); 274 } 275 276 public ActivityIteratorExpressionBuilder addLastStateTimeAfter(long arg) { 277 myEB.addLastStateTimeAfter(arg); 278 return _this(); 279 } 280 281 public ActivityIteratorExpressionBuilder addAcceptedTimeEquals(long arg) { 282 myEB.addAcceptedTimeEquals(arg); 283 return _this(); 284 } 285 286 public ActivityIteratorExpressionBuilder addAcceptedTimeBefore(long arg) { 287 myEB.addAcceptedTimeBefore(arg); 288 return _this(); 289 } 290 291 public ActivityIteratorExpressionBuilder addAcceptedTimeAfter(long arg) { 292 myEB.addAcceptedTimeAfter(arg); 293 return _this(); 294 } 295 296 public ActivityIteratorExpressionBuilder addVariableAnyEquals(String vName, 297 Any vValue) throws BaseException { 298 try { 299 myEB.addVariableEquals(vName, 300 SharkCORBAUtilities.extractValueFromAny(vValue)); 301 } catch (Exception ex) { 302 throw new BaseException(); 303 } 304 return _this(); 305 } 306 307 public ActivityIteratorExpressionBuilder addVariableStrEquals(String vName, 308 String vValue) { 309 myEB.addVariableEquals(vName, vValue); 310 return _this(); 311 } 312 313 public ActivityIteratorExpressionBuilder addVariableLngEquals(String vName, 314 long vValue) { 315 myEB.addVariableEquals(vName, vValue); 316 return _this(); 317 } 318 319 public ActivityIteratorExpressionBuilder addVariableLngGreaterThan(String vName, 320 long vValue) { 321 myEB.addVariableGreaterThan(vName, vValue); 322 return _this(); 323 } 324 325 public ActivityIteratorExpressionBuilder addVariableLngLessThan(String vName, 326 long vValue) { 327 myEB.addVariableLessThan(vName, vValue); 328 return _this(); 329 } 330 331 public ActivityIteratorExpressionBuilder addVariableDblEquals(String vName, 332 double vValue) { 333 myEB.addVariableEquals(vName, vValue); 334 return _this(); 335 } 336 337 public ActivityIteratorExpressionBuilder addVariableDblGreaterThan(String vName, 338 double vValue) { 339 myEB.addVariableGreaterThan(vName, vValue); 340 return _this(); 341 } 342 343 public ActivityIteratorExpressionBuilder addVariableDblLessThan(String vName, 344 double vValue) { 345 myEB.addVariableLessThan(vName, vValue); 346 return _this(); 347 } 348 349 public ActivityIteratorExpressionBuilder addActivitySetDefId(String arg) { 350 myEB.addActivitySetDefId(arg); 351 return _this(); 352 } 353 354 public ActivityIteratorExpressionBuilder addDefinitionId(String arg) { 355 myEB.addDefinitionId(arg); 356 return _this(); 357 } 358 359 public ActivityIteratorExpressionBuilder addIsAccepted() { 360 myEB.addIsAccepted(); 361 return _this(); 362 } 363 364 public ActivityIteratorExpressionBuilder addResourceUsername(String arg) { 365 myEB.addResourceUsername(arg); 366 return _this(); 367 } 368 369 public ActivityIteratorExpressionBuilder addExpressionStr(String exp) { 370 myEB.addExpression(exp); 371 return _this(); 372 } 373 374 public ActivityIteratorExpressionBuilder addExpression(ActivityIteratorExpressionBuilder eb) { 375 myEB.addExpression((org.enhydra.shark.api.common.ActivityIteratorExpressionBuilder) eb.getTheImpl() 376 .extract_Value()); 377 return _this(); 378 } 379 380 public Any getTheImpl() { 381 Any ret = this._orb().create_any(); 382 ret.insert_Value(myEB); 383 return ret; 384 } 385 386 public ActivityIteratorExpressionBuilder setOrderById(boolean ascending) { 387 myEB.setOrderById(ascending); 388 return _this(); 389 } 390 391 public ActivityIteratorExpressionBuilder setOrderByActivitySetDefId(boolean ascending) { 392 myEB.setOrderByActivitySetDefId(ascending); 393 return _this(); 394 } 395 396 public ActivityIteratorExpressionBuilder setOrderByDefinitionId(boolean ascending) { 397 myEB.setOrderByDefinitionId(ascending); 398 return _this(); 399 } 400 401 public ActivityIteratorExpressionBuilder setOrderByProcessId(boolean ascending) { 402 myEB.setOrderByProcessId(ascending); 403 return _this(); 404 } 405 406 public ActivityIteratorExpressionBuilder setOrderByResourceUsername(boolean ascending) { 407 myEB.setOrderByResourceUsername(ascending); 408 return _this(); 409 } 410 411 public ActivityIteratorExpressionBuilder setOrderByProcessDefName(boolean ascending) { 412 myEB.setOrderByProcessDefName(ascending); 413 return _this(); 414 } 415 416 public ActivityIteratorExpressionBuilder setOrderByState(boolean ascending) { 417 myEB.setOrderByState(ascending); 418 return _this(); 419 } 420 421 public ActivityIteratorExpressionBuilder setOrderByPerformer(boolean ascending) { 422 myEB.setOrderByPerformer(ascending); 423 return _this(); 424 } 425 426 public ActivityIteratorExpressionBuilder setOrderByPriority(boolean ascending) { 427 myEB.setOrderByPriority(ascending); 428 return _this(); 429 } 430 431 public ActivityIteratorExpressionBuilder setOrderByName(boolean ascending) { 432 myEB.setOrderByName(ascending); 433 return _this(); 434 } 435 436 public ActivityIteratorExpressionBuilder setOrderByActivatedTime(boolean ascending) { 437 myEB.setOrderByActivatedTime(ascending); 438 return _this(); 439 } 440 441 public ActivityIteratorExpressionBuilder setOrderByAcceptedTime(boolean ascending) { 442 myEB.setOrderByAcceptedTime(ascending); 443 return _this(); 444 } 445 446 public ActivityIteratorExpressionBuilder setOrderByLastStateTime(boolean ascending) { 447 myEB.setOrderByLastStateTime(ascending); 448 return _this(); 449 } 450 } | Popular Tags |