1 package org.enhydra.shark.corba.poa; 2 3 import org.enhydra.shark.corba.ExpressionBuilders.ResourceIteratorExpressionBuilder; 4 import org.enhydra.shark.corba.ExpressionBuilders.ResourceIteratorExpressionBuilderPOA; 5 import org.omg.CORBA.Any ; 6 import org.omg.CORBA.ORB ; 7 8 13 public class ResourceIteratorExpressionBuilderCORBA extends 14 ResourceIteratorExpressionBuilderPOA { 15 16 org.enhydra.shark.api.common.ResourceIteratorExpressionBuilder myEB; 17 18 public ResourceIteratorExpressionBuilderCORBA(org.enhydra.shark.api.common.ResourceIteratorExpressionBuilder eb) { 19 this.myEB = eb; 20 } 22 23 public boolean isComplete() { 24 return myEB.isComplete(); 25 } 26 27 public String toSQL() { 28 return myEB.toSQL(); 29 } 30 31 public String toScript() { 32 return myEB.toScript(); 33 } 34 35 public String toExpression() { 36 return myEB.toExpression(); 37 } 38 39 public ResourceIteratorExpressionBuilder and() { 40 myEB.and(); 41 return _this(); 42 } 43 44 public ResourceIteratorExpressionBuilder or() { 45 myEB.or(); 46 return _this(); 47 } 48 49 public ResourceIteratorExpressionBuilder not() { 50 myEB.not(); 51 return _this(); 52 } 53 54 public ResourceIteratorExpressionBuilder addUsernameEquals(String un) { 55 myEB.addUsernameEquals(un); 56 return _this(); 57 } 58 59 public ResourceIteratorExpressionBuilder addAssignemtCountEquals(long cnt) { 60 myEB.addAssignemtCountEquals(cnt); 61 return _this(); 62 } 63 64 public ResourceIteratorExpressionBuilder addAssignemtCountLessThan(long cnt) { 65 myEB.addAssignemtCountLessThan(cnt); 66 return _this(); 67 } 68 69 public ResourceIteratorExpressionBuilder addAssignemtCountGreaterThan(long cnt) { 70 myEB.addAssignemtCountGreaterThan(cnt); 71 return _this(); 72 } 73 74 public ResourceIteratorExpressionBuilder addExpressionStr(String exp) { 75 myEB.addExpression(exp); 76 return _this(); 77 } 78 79 public void disconnect() { 80 82 } 83 84 public ResourceIteratorExpressionBuilder addExpression(ResourceIteratorExpressionBuilder eb) { 85 myEB.addExpression((org.enhydra.shark.api.common.ResourceIteratorExpressionBuilder) eb.getTheImpl() 86 .extract_Value()); 87 return _this(); 88 } 89 90 public Any getTheImpl() { 91 Any ret = this._orb().create_any(); 92 ret.insert_Value(myEB); 93 return ret; 94 } 95 96 public ResourceIteratorExpressionBuilder setOrderByUsername(boolean ascending) { 97 myEB.setOrderByUsername(ascending); 98 return _this(); 99 } 100 } | Popular Tags |