KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > corba > poa > ResourceIteratorExpressionBuilderCORBA


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 JavaDoc;
6 import org.omg.CORBA.ORB JavaDoc;
7
8 /**
9  * ResourceIteratorExpressionBuilderCORBA
10  *
11  * @author David Forslund
12  */

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       // _this(orb);
21
}
22
23    public boolean isComplete() {
24       return myEB.isComplete();
25    }
26
27    public String JavaDoc toSQL() {
28       return myEB.toSQL();
29    }
30
31    public String JavaDoc toScript() {
32       return myEB.toScript();
33    }
34
35    public String JavaDoc 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 JavaDoc 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 JavaDoc exp) {
75       myEB.addExpression(exp);
76       return _this();
77    }
78
79    public void disconnect() {
80    // TODO Auto-generated method stub
81

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 JavaDoc getTheImpl() {
91       Any JavaDoc 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