KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > expression > Wildcard


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.expression;
6
7 import java.sql.SQLException JavaDoc;
8
9 import org.h2.engine.Session;
10 import org.h2.message.Message;
11 import org.h2.table.ColumnResolver;
12 import org.h2.table.TableFilter;
13 import org.h2.value.Value;
14
15
16 /**
17  * @author Thomas
18  */

19
20 public class Wildcard extends Expression {
21     private String JavaDoc schema;
22     private String JavaDoc table;
23
24     public Wildcard(String JavaDoc schema, String JavaDoc table) {
25         this.schema = schema;
26         this.table = table;
27     }
28
29     public boolean isWildcard() {
30         return true;
31     }
32
33     public Value getValue(Session session) {
34         throw Message.getInternalError();
35     }
36
37     public int getType() {
38         throw Message.getInternalError();
39     }
40
41     public void mapColumns(ColumnResolver resolver, int level) throws SQLException JavaDoc {
42         throw Message.getSQLException(Message.SYNTAX_ERROR_1, table);
43     }
44
45     public void checkMapped() {
46         throw Message.getInternalError();
47     }
48
49     public Expression optimize(Session session) throws SQLException JavaDoc {
50         throw Message.getSQLException(Message.SYNTAX_ERROR_1, table);
51     }
52
53     public void setEvaluatable(TableFilter tableFilter, boolean b) {
54         throw Message.getInternalError();
55     }
56
57     public int getScale() {
58         throw Message.getInternalError();
59     }
60
61     public long getPrecision() {
62         throw Message.getInternalError();
63     }
64
65     public String JavaDoc getSchema() {
66         return schema;
67     }
68
69     public String JavaDoc getTableAlias() {
70         return table;
71     }
72
73     public String JavaDoc getSQL() {
74         throw Message.getInternalError();
75     }
76
77     public void updateAggregate(Session session) {
78         throw Message.getInternalError();
79     }
80
81     public boolean isEverything(ExpressionVisitor visitor) {
82         throw Message.getInternalError();
83     }
84     
85     public int getCost() {
86         throw Message.getInternalError();
87     }
88
89 }
90
Popular Tags