KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.enhydra.shark.corba;
2
3 import org.enhydra.shark.corba.ExpressionBuilders.ResourceIteratorExpressionBuilder;
4 import org.enhydra.shark.corba.ExpressionBuilders._ResourceIteratorExpressionBuilderImplBase;
5 import org.omg.CORBA.Any JavaDoc;
6
7 /**
8  * ResourceIteratorExpressionBuilderCORBA
9  *
10  * @author Sasa Bojanic
11  */

12 public class ResourceIteratorExpressionBuilderCORBA extends
13                                                    _ResourceIteratorExpressionBuilderImplBase {
14
15    org.enhydra.shark.api.common.ResourceIteratorExpressionBuilder myEB;
16
17    public ResourceIteratorExpressionBuilderCORBA(org.enhydra.shark.api.common.ResourceIteratorExpressionBuilder eb) {
18       this.myEB = eb;
19    }
20
21    public boolean isComplete() {
22       return myEB.isComplete();
23    }
24
25    public String JavaDoc toSQL() {
26       return myEB.toSQL();
27    }
28
29    public String JavaDoc toScript() {
30       return myEB.toScript();
31    }
32
33    public String JavaDoc toExpression() {
34       return myEB.toExpression();
35    }
36
37    public ResourceIteratorExpressionBuilder and() {
38       myEB.and();
39       return this;
40    }
41
42    public ResourceIteratorExpressionBuilder or() {
43       myEB.or();
44       return this;
45    }
46
47    public ResourceIteratorExpressionBuilder not() {
48       myEB.not();
49       return this;
50    }
51
52    public ResourceIteratorExpressionBuilder addUsernameEquals(String JavaDoc un) {
53       myEB.addUsernameEquals(un);
54       return this;
55    }
56
57    public ResourceIteratorExpressionBuilder addAssignemtCountEquals(long cnt) {
58       myEB.addAssignemtCountEquals(cnt);
59       return this;
60    }
61
62    public ResourceIteratorExpressionBuilder addAssignemtCountLessThan(long cnt) {
63       myEB.addAssignemtCountLessThan(cnt);
64       return this;
65    }
66
67    public ResourceIteratorExpressionBuilder addAssignemtCountGreaterThan(long cnt) {
68       myEB.addAssignemtCountGreaterThan(cnt);
69       return this;
70    }
71
72    public ResourceIteratorExpressionBuilder addExpressionStr(String JavaDoc exp) {
73       myEB.addExpression(exp);
74       return this;
75    }
76
77    public void disconnect() {
78    // TODO Auto-generated method stub
79

80    }
81
82    public ResourceIteratorExpressionBuilder addExpression(ResourceIteratorExpressionBuilder eb) {
83       myEB.addExpression((org.enhydra.shark.api.common.ResourceIteratorExpressionBuilder) eb.getTheImpl()
84          .extract_Value());
85       return this;
86    }
87
88    public Any JavaDoc getTheImpl() {
89       Any JavaDoc ret = this._orb().create_any();
90       ret.insert_Value(myEB);
91       return ret;
92    }
93
94    public ResourceIteratorExpressionBuilder setOrderByUsername(boolean ascending) {
95       myEB.setOrderByUsername(ascending);
96       return this;
97    }
98 }
Popular Tags