KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > extractor > algebra > DefaultGenSqlVisitor


1 /*
2  * This file belongs to the XQuark distribution.
3  * Copyright (C) 2003 Universite de Versailles Saint-Quentin.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307.
18  * You can also get it at http://www.gnu.org/licenses/lgpl.html
19  *
20  * For more information on this software, see http://www.xquark.org.
21  */

22
23 package org.xquark.extractor.algebra;
24
25 import org.xquark.extractor.common.SqlWrapperException;
26 import org.xquark.extractor.sql.SqlExpression;
27 import org.xquark.extractor.xfunctions.*;
28
29 public abstract class DefaultGenSqlVisitor implements GenSqlVisitor {
30
31     private static final String JavaDoc RCSRevision = "$Revision: 1.4 $";
32     private static final String JavaDoc RCSName = "$Name: $";
33
34
35
36     public SqlExpression visit(Expression arg) throws SqlWrapperException {
37         return visit(arg);
38     }
39
40     public SqlExpression visit(Attribute arg) throws SqlWrapperException {
41         return visit((Expression)arg);
42     }
43
44     public SqlExpression visit(AttributeExpression arg) throws SqlWrapperException {
45         return visit((Expression)arg);
46     }
47
48     public SqlExpression visit(BinaryOperator arg) throws SqlWrapperException {
49         return visit((Expression)arg);
50     }
51
52     public SqlExpression visit(BinaryAtomicOp arg) throws SqlWrapperException {
53         return visit((BinaryOperator)arg);
54     }
55
56     public SqlExpression visit(BinaryAlgebra arg) throws SqlWrapperException {
57         return visit((BinaryOperator)arg);
58     }
59
60     public SqlExpression visit(BinOpArithmetic arg) throws SqlWrapperException {
61         return visit((BinaryAtomicOp)arg);
62     }
63
64     public SqlExpression visit(BinOpBoolean arg) throws SqlWrapperException {
65         return visit((BinaryAtomicOp)arg);
66     }
67
68     public SqlExpression visit(BinOpCompare arg) throws SqlWrapperException {
69         return visit((BinaryAtomicOp)arg);
70     }
71
72     public SqlExpression visit(BinOpCompareAny arg) throws SqlWrapperException {
73         return visit((BinaryAtomicOp)arg);
74     }
75
76     public SqlExpression visit(BinOpDifference arg) throws SqlWrapperException {
77         return visit((BinaryAlgebra)arg);
78     }
79
80     public SqlExpression visit(BinOpIntersect arg) throws SqlWrapperException {
81         return visit((BinaryAlgebra)arg);
82     }
83
84     public SqlExpression visit(BinOpMerge arg) throws SqlWrapperException {
85         return visit((BinaryAlgebra)arg);
86     }
87
88     public SqlExpression visit(BinOpOuterJoin arg) throws SqlWrapperException {
89         return visit((BinaryOperator)arg);
90     }
91
92     public SqlExpression visit(BinOpUnion arg) throws SqlWrapperException {
93         return visit((BinaryAlgebra)arg);
94     }
95
96     public SqlExpression visit(DummyTable arg) throws SqlWrapperException {
97         return visit((Expression)arg);
98     }
99
100     public SqlExpression visit(ExternalVariable arg) throws SqlWrapperException {
101         return visit((Literal)arg);
102     }
103
104     public SqlExpression visit(FunAggregate arg) throws SqlWrapperException {
105         return visit((Expression)arg);
106     }
107
108     public SqlExpression visit(IfThenElse arg) throws SqlWrapperException {
109         return visit((Expression)arg);
110     }
111
112     public SqlExpression visit(Join arg) throws SqlWrapperException {
113         return visit((Expression)arg);
114     }
115
116     public SqlExpression visit(Literal arg) throws SqlWrapperException {
117         return visit((Expression)arg);
118     }
119
120     public SqlExpression visit(LitBoolean arg) throws SqlWrapperException {
121         return visit((Literal)arg);
122     }
123
124     public SqlExpression visit(LitDate arg) throws SqlWrapperException {
125         return visit((Literal)arg);
126     }
127
128     public SqlExpression visit(LitDecimal arg) throws SqlWrapperException{
129         return visit((Literal)arg);
130     }
131
132     public SqlExpression visit(LitDouble arg) throws SqlWrapperException {
133         return visit((Literal)arg);
134     }
135
136     public SqlExpression visit(LitFloat arg) throws SqlWrapperException {
137         return visit((Literal)arg);
138     }
139
140     public SqlExpression visit(LitInteger arg) throws SqlWrapperException {
141         return visit((Literal)arg);
142     }
143
144     public SqlExpression visit(LitNull arg) throws SqlWrapperException{
145         return visit((Literal)arg);
146     }
147
148     public SqlExpression visit(LitString arg) throws SqlWrapperException {
149         return visit((Literal)arg);
150     }
151
152
153     public SqlExpression visit(OuterJoinPredicate arg) throws SqlWrapperException {
154         return visit((Expression)arg);
155     }
156
157     public SqlExpression visit(RenameItem arg) throws SqlWrapperException {
158         return visit((UnaryAtomicOp)arg);
159     }
160
161     public SqlExpression visit(RenameRelation arg) throws SqlWrapperException {
162         return visit((UnaryAlgebra)arg);
163     }
164
165     public SqlExpression visit(SortSpecification arg) throws SqlWrapperException {
166         return visit((Expression)arg);
167     }
168
169     public SqlExpression visit(Table arg) throws SqlWrapperException {
170         return visit((Expression)arg);
171     }
172
173     public SqlExpression visit(TupleExpression arg) throws SqlWrapperException {
174         return visit((Expression)arg);
175     }
176
177     public SqlExpression visit(TempValue arg) throws SqlWrapperException {
178         return visit((UnaryOperator)arg);
179     }
180
181     public SqlExpression visit(ConstantTempTable arg) throws SqlWrapperException {
182         return visit((Table)arg);
183     }
184
185     public SqlExpression visit(UnaryOperator arg) throws SqlWrapperException {
186         return visit((Expression)arg);
187     }
188
189     public SqlExpression visit(UnaryAlgebra arg) throws SqlWrapperException {
190         return visit((UnaryOperator)arg);
191     }
192
193     public SqlExpression visit(UnaryAtomicOp arg) throws SqlWrapperException {
194         return visit((UnaryOperator)arg);
195     }
196
197     public SqlExpression visit(UnOpAggregate arg) throws SqlWrapperException {
198         return visit((UnOpProject)arg);
199     }
200
201     public SqlExpression visit(UnOpExists arg) throws SqlWrapperException {
202         return visit((UnaryAtomicOp)arg);
203     }
204
205     public SqlExpression visit(UnOpGroup arg) throws SqlWrapperException {
206         return visit((UnaryAlgebra)arg);
207     }
208
209     public SqlExpression visit(UnOpIsNull arg) throws SqlWrapperException {
210         return visit((UnaryAtomicOp)arg);
211     }
212
213     public SqlExpression visit(UnOpMinus arg) throws SqlWrapperException {
214         return visit((UnaryAtomicOp)arg);
215     }
216
217     public SqlExpression visit(UnOpNot arg) throws SqlWrapperException {
218         return visit((UnaryAtomicOp)arg);
219     }
220
221     public SqlExpression visit(UnOpProject arg) throws SqlWrapperException {
222         return visit((UnaryAlgebra)arg);
223     }
224
225     public SqlExpression visit(TempTable arg) throws SqlWrapperException {
226         return visit((UnaryAlgebra)arg);
227     }
228
229     public SqlExpression visit(UnOpRestrict arg) throws SqlWrapperException {
230         return visit((UnaryAlgebra)arg);
231     }
232
233     public SqlExpression visit(UnOpSort arg) throws SqlWrapperException {
234         return visit((UnaryAlgebra)arg);
235     }
236
237     public SqlExpression visit(XFunction arg) throws SqlWrapperException {
238         return visit((Expression)arg);
239     }
240
241     public SqlExpression visit(Xfunction_Boolean arg) throws SqlWrapperException {
242         return visit((XFunction)arg);
243     }
244
245     public SqlExpression visit(Xfunction_Date arg) throws SqlWrapperException {
246         return visit((XFunction)arg);
247     }
248
249     public SqlExpression visit(Xfunction_DateTime arg) throws SqlWrapperException {
250         return visit((XFunction)arg);
251     }
252
253     public SqlExpression visit(Xfunction_Integer arg) throws SqlWrapperException {
254         return visit((XFunction)arg);
255     }
256
257     public SqlExpression visit(Xfunction_String arg) throws SqlWrapperException {
258         return visit((XFunction)arg);
259     }
260
261     public SqlExpression visit(AfTrim arg) throws SqlWrapperException {
262         return visit((Xfunction_String)arg);
263     }
264
265     public SqlExpression visit(AfCast arg) throws SqlWrapperException {
266         return visit((Expression)arg);
267     }
268
269     public SqlExpression visit(XfCast arg) throws SqlWrapperException {
270         return visit((Expression)arg);
271     }
272
273     public SqlExpression visit(XfAbs arg) throws SqlWrapperException{
274         return visit((XFunction)arg);
275     }
276
277     public SqlExpression visit(XfCeiling arg) throws SqlWrapperException {
278         return visit((Xfunction_Integer)arg);
279     }
280
281     public SqlExpression visit(XfConcat arg) throws SqlWrapperException {
282         return visit((Xfunction_String)arg);
283     }
284
285     public SqlExpression visit(XfContains arg) throws SqlWrapperException {
286         return visit((Xfunction_Boolean)arg);
287     }
288
289     public SqlExpression visit(XfCurrentDateTime arg) throws SqlWrapperException {
290         return visit((XFunction)arg);
291     }
292
293     public SqlExpression visit(XfGetCenturyFromDate arg) throws SqlWrapperException {
294         return visit((Xfunction_Integer)arg);
295     }
296
297     public SqlExpression visit(XfGetHourFromTime arg) throws SqlWrapperException {
298         return visit((Xfunction_Integer)arg);
299     }
300
301     public SqlExpression visit(XfGetMinutesFromtime arg) throws SqlWrapperException {
302         return visit((Xfunction_Integer)arg);
303     }
304
305     public SqlExpression visit(XfGetSecondsFromtime arg) throws SqlWrapperException {
306         return visit((Xfunction_Integer)arg);
307     }
308
309     public SqlExpression visit(XfDate arg) throws SqlWrapperException{
310         return visit((XFunction)arg);
311     }
312
313     public SqlExpression visit(XfDateTime arg) throws SqlWrapperException{
314         return visit((XFunction)arg);
315     }
316
317     public SqlExpression visit(XfEndsWith arg) throws SqlWrapperException {
318         return visit((Xfunction_Boolean)arg);
319     }
320
321     public SqlExpression visit(XfFloor arg) throws SqlWrapperException {
322         return visit((Xfunction_Integer)arg);
323     }
324
325     public SqlExpression visit(XfLowerCase arg) throws SqlWrapperException {
326         return visit((Xfunction_String)arg);
327     }
328
329     public SqlExpression visit(XfRound arg) throws SqlWrapperException {
330         return visit((Xfunction_Integer)arg);
331     }
332
333     public SqlExpression visit(XfStartsWith arg) throws SqlWrapperException {
334         return visit((Xfunction_Boolean)arg);
335     }
336
337     public SqlExpression visit(XfStringLength arg) throws SqlWrapperException {
338         return visit((Xfunction_Integer)arg);
339     }
340
341     public SqlExpression visit(XfSubString arg) throws SqlWrapperException {
342         return visit((Xfunction_String)arg);
343     }
344
345     public SqlExpression visit(XfTime arg) throws SqlWrapperException{
346         return visit((XFunction)arg);
347     }
348
349     public SqlExpression visit(XfUpperCase arg) throws SqlWrapperException {
350         return visit((Xfunction_String)arg);
351     }
352
353 }
354
Popular Tags