KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > token > Sasterisk_344623246


1 package com.daffodilwoods.daffodildb.server.sql99.token;
2
3 import java.util.*;
4
5 import com.daffodilwoods.daffodildb.server.serversystem.*;
6 import com.daffodilwoods.daffodildb.server.sql99.common.*; //import com.daffodilwoods.daffodildb.server.sql99.common.Properties;
7
import com.daffodilwoods.daffodildb.server.sql99.dql.queryexpression.queryspecification.*;
8 import com.daffodilwoods.daffodildb.server.sql99.utils.*;
9 import com.daffodilwoods.database.resource.*;
10
11 public class Sasterisk_344623246 implements com.daffodilwoods.daffodildb.utils.parser.StatementExecuter, SQLspecialcharacter, SQLspecialcharacter2, Datatypes, TypeConstants, qualifiedasterisk {
12    public String JavaDoc _Sasterisk_3446232460;
13
14    /**
15     * Null is returned as there are no unknown references
16     * @param session
17     * @return _Reference[]
18     * @throws DException
19     */

20    public _Reference[] checkSemantic(_ServerSession session) throws DException {
21       return null;
22    }
23
24    private ColumnDetails column;
25    private Properties[] properties;
26    private ColumnDetails[] derived;
27
28    public Object JavaDoc run(Object JavaDoc object) throws com.daffodilwoods.database.resource.DException {
29       throw new DException("DSE16", new Object JavaDoc[] {"Sasterisk_344623246"});
30    }
31
32    public ColumnDetails[] getColumnDetails() throws DException {
33       if (column == null) {
34          column = new ColumnDetails();
35          column.setColumnName(new String JavaDoc[] {"*"});
36          column.setType(CONSTANT);
37       }
38       return new ColumnDetails[] {column};
39    }
40
41    public ColumnDetails[] getDerivedColumnDetails() throws DException {
42       if (derived == null) {
43          try {
44             derived = (ColumnDetails[]) column.getObject();
45          } catch (NullPointerException JavaDoc ex) {
46             throw new DException("DSE3574", null);
47          }
48       }
49       return derived;
50    }
51
52    public ParameterInfo[] getParameterInfo() throws DException {
53       ParameterInfo parameterInfo = new ParameterInfo();
54       parameterInfo.setName("*");
55       return new ParameterInfo[] {parameterInfo};
56    }
57
58    public int getType() {
59       return OTHERS;
60    }
61
62    public int getDataType() throws DException {
63       throw new UnsupportedOperationException JavaDoc();
64    }
65
66    public int getSize() throws DException {
67       throw new UnsupportedOperationException JavaDoc();
68    }
69
70    public void getColumnsIncluded(ArrayList parm1) throws com.daffodilwoods.database.resource.DException {
71       if (derived != null) {
72          getDerivedColumnDetails();
73       }
74       for (int i = 0; i < derived.length; i++) {
75          parm1.add(derived[i].getColumnName());
76       }
77    }
78
79    public _Reference[] getReferences(TableDetails[] tableDetails) throws DException {
80       return null;
81    }
82
83    public Object JavaDoc[] getParameters(Object JavaDoc object) throws DException {
84      return null;
85    }
86
87
88    public String JavaDoc toString() {
89       StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
90       sb.append(" ");
91       sb.append(_Sasterisk_3446232460);
92       return sb.toString();
93    }
94
95    public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc {
96       return this;
97    }
98
99    public ByteComparison getByteComparison(Object JavaDoc object) throws DException {
100       return new ByteComparison(true, getDatatypes());
101    }
102
103    private int[] getDatatypes() throws DException {
104       int[] datatypes = new int[derived.length];
105       for (int i = 0; i < derived.length; i++) {
106          datatypes[i] = derived[i].getDatatype();
107       }
108       return datatypes;
109    }
110
111    public ColumnDetails[] getChildColumnDetails() throws DException {
112       return getColumnDetails();
113    }
114 }
115
Popular Tags