1 5 package org.h2.expression; 6 7 import java.sql.SQLException ; 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 19 20 public class Wildcard extends Expression { 21 private String schema; 22 private String table; 23 24 public Wildcard(String schema, String 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 { 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 { 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 getSchema() { 66 return schema; 67 } 68 69 public String getTableAlias() { 70 return table; 71 } 72 73 public String 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 |