KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jofti > parser > ConvenienceQueryWrapper


1 package com.jofti.parser;
2
3 import java.util.Map JavaDoc;
4 import java.util.Stack JavaDoc;
5
6 import com.jofti.api.IndexQuery;
7 import com.jofti.core.INameSpaceAware;
8 import com.jofti.core.IParsedQuery;
9 import com.jofti.core.QueryId;
10 import com.jofti.core.QueryType;
11 import com.jofti.util.CompositeComparator;
12
13 public class ConvenienceQueryWrapper implements IParsedQuery,INameSpaceAware, QueryId{
14
15     private IndexQuery query =null;
16     
17     public ConvenienceQueryWrapper(IndexQuery query){
18         this.query =query;
19     }
20     
21     public IndexQuery getQuery(){
22         return query;
23     }
24     public Map JavaDoc getAliasMap() {
25         // TODO Auto-generated method stub
26
return null;
27     }
28
29     public Class JavaDoc getClassName() {
30         // TODO Auto-generated method stub
31
return null;
32     }
33
34     public int getFirstResult() {
35         // TODO Auto-generated method stub
36
return 0;
37     }
38
39     public int getMaxResults() {
40         // TODO Auto-generated method stub
41
return 0;
42     }
43
44     public Object JavaDoc getNameSpace() {
45         if (query instanceof INameSpaceAware){
46             return ((INameSpaceAware)query).getNameSpace();
47         } else{
48             return null;
49         }
50     }
51
52     public Map JavaDoc getNamedValueMap() {
53         // TODO Auto-generated method stub
54
return null;
55     }
56
57     public CompositeComparator getOrderingComparator() {
58         // TODO Auto-generated method stub
59
return null;
60     }
61
62     public Stack JavaDoc getPredicates() {
63         // TODO Auto-generated method stub
64
return null;
65     }
66
67     public Map JavaDoc getResultFieldsMap() {
68         // TODO Auto-generated method stub
69
return null;
70     }
71
72     public IndexQuery setFirstResult(int firstResult) {
73         // TODO Auto-generated method stub
74
return null;
75     }
76
77     public IndexQuery setMaxResults(int maxResults) {
78         // TODO Auto-generated method stub
79
return null;
80     }
81
82     public IndexQuery setParameter(String JavaDoc name, Object JavaDoc value) {
83         // TODO Auto-generated method stub
84
return null;
85     }
86
87     public IndexQuery setParameter(int position, Object JavaDoc value) {
88         // TODO Auto-generated method stub
89
return null;
90     }
91
92     public void setNameSpace(Object JavaDoc nameSpace) {
93         // TODO Auto-generated method stub
94

95     }
96
97     public QueryType getQueryType() {
98         
99         return ((QueryId)query).getQueryType();
100     }
101
102 }
103
Popular Tags