KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > resultsetmetadata > ColumnCharacteristicsFromSubQuery


1 package com.daffodilwoods.daffodildb.server.sql99.dql.resultsetmetadata;
2
3 import java.text.*;
4
5 import com.daffodilwoods.daffodildb.server.sql99.common.*;
6 import com.daffodilwoods.database.general.*;
7 import com.daffodilwoods.database.resource.*;
8 import com.daffodilwoods.daffodildb.server.datadictionarysystem._ColumnCharacteristics;
9
10 /**
11  * It represents the column characteristics of 'From Subquery'
12  * <p>Title: </p>
13  * <p>Description: </p>
14  * <p>Copyright: Copyright (c) 2003</p>
15  * <p>Company: </p>
16  * @author unascribed
17  * @version 1.0
18  */

19
20 public class ColumnCharacteristicsFromSubQuery implements _SelectColumnCharacteristics {
21
22    /**
23     * Represents the characteristics of select query contained in 'from subquery'
24     */

25
26    _SelectColumnCharacteristics cc;
27
28    public ColumnCharacteristicsFromSubQuery(_SelectColumnCharacteristics cc0) {
29       cc = cc0;
30    }
31
32    /**
33     * It delegates the call to column characteristics of select query involved in
34     * 'from subquery'. For documentation, refer the documentation of
35     * ColumnCharacteristics interface.
36     */

37
38    public int getColumnType(int index) throws DException {
39       return cc.getColumnType(index);
40    }
41
42    public int getColumnIndex(String JavaDoc columnName) throws DException {
43       return cc.getColumnIndex(columnName);
44    }
45
46    public String JavaDoc getColumnName(int parm1) throws DException {
47       return cc.getColumnName(parm1);
48    }
49
50    public String JavaDoc getRelatedTable(int parm1) throws DatabaseException, DException {
51       return cc.getRelatedTable(parm1);
52    }
53
54    public int getColumnCount() throws DException {
55       return cc.getColumnCount();
56    }
57
58    public String JavaDoc[] getColumnNames() throws DException {
59       return cc.getColumnNames();
60    }
61
62    public int getSize(int parm1) throws DException {
63       return cc.getSize(parm1);
64    }
65
66    public String JavaDoc[] getPrimaryKeys() throws DatabaseException, DException {
67       return cc.getPrimaryKeys();
68    }
69
70    public String JavaDoc getRelation(int parm1) throws DatabaseException, DException {
71       return cc.getRelation(parm1);
72    }
73
74    public int[] getColumnIndexes(String JavaDoc[] parm1) throws DException {
75       return cc.getColumnIndexes(parm1);
76    }
77
78    public int[] getPrimaryConditionColumns() throws DException {
79       return cc.getPrimaryConditionColumns();
80    }
81
82    public String JavaDoc getTableName(int index) throws DatabaseException, DException {
83       return cc.getTableName(index);
84    }
85
86    public short getTableType() throws DException {
87       return TypeConstants.VIEW;
88    }
89
90    public int getPrecision(int index) throws DException {
91       return cc.getPrecision(index);
92    }
93
94    public int getScale(int index) throws DException {
95       return cc.getScale(index);
96    }
97
98    public String JavaDoc getSchemaName(int index) throws DException {
99       return cc.getSchemaName(index);
100    }
101
102    public String JavaDoc getCatalogName(int index) throws DException {
103       return cc.getCatalogName(index);
104    }
105
106    public int isNullable(int index) throws DException {
107       return cc.isNullable(index);
108    }
109
110    public boolean isAutoIncrement(int index) throws DException {
111       return cc.isAutoIncrement(index + 1);
112    }
113
114    public String JavaDoc getColumnLabel(int index) throws DException {
115       return cc.getColumnLabel(index);
116    }
117
118    public String JavaDoc getQualifiedTableName(int index) throws DException {
119       return cc.getQualifiedTableName(index);
120    }
121
122    public boolean isColumnUpdatable(int columnIndex) throws DException {
123       return cc.isColumnUpdatable(columnIndex);
124    }
125
126    public boolean isUpdatable() throws DException {
127       return cc.isUpdatable();
128    }
129
130    public boolean isColumnSelectable(int columnIndex) throws DException {
131       return cc.isColumnSelectable(columnIndex);
132    }
133
134    public _SelectColumnCharacteristics getColumnCharacteristics(int parm1) throws com.daffodilwoods.database.resource.DException {
135       /**@todo Implement this com.daffodilwoods.daffodildb.server.sql99.dql.interfaces._SelectColumnCharacteristics method*/
136       throw new java.lang.UnsupportedOperationException JavaDoc("Method getColumnCharacteristics() not yet implemented.");
137    }
138
139    public boolean isForeignTableRecordFetched(int parm1) throws com.daffodilwoods.database.resource.DException {
140       /**@todo Implement this com.daffodilwoods.daffodildb.server.sql99.dql.interfaces._SelectColumnCharacteristics method*/
141       throw new java.lang.UnsupportedOperationException JavaDoc("Method isForeignTableReferenced() not yet implemented.");
142    }
143
144    public int getSelectedIndex(int parm1) throws com.daffodilwoods.database.resource.DException {
145       /**@todo Implement this com.daffodilwoods.daffodildb.server.sql99.dql.interfaces._SelectColumnCharacteristics method*/
146       throw new java.lang.UnsupportedOperationException JavaDoc("Method getSelectedIndex() not yet implemented.");
147    }
148
149    public int getSelectedIndex(String JavaDoc parm1) throws com.daffodilwoods.database.resource.DException {
150       /**@todo Implement this com.daffodilwoods.daffodildb.server.sql99.dql.interfaces._SelectColumnCharacteristics method*/
151       throw new java.lang.UnsupportedOperationException JavaDoc("Method getSelectedIndex() not yet implemented.");
152    }
153
154    public String JavaDoc getExpression(int index) throws DException {
155       /**@todo Implement this com.daffodilwoods.daffodildb.server.sql99.dql.interfaces._SelectColumnCharacteristics method*/
156       throw new java.lang.UnsupportedOperationException JavaDoc("Method getExpression() not yet implemented.");
157    }
158
159    public String JavaDoc[] getRelatedColumns(int parm1) throws DatabaseException, DException {
160       /**@todo Implement this com.daffodilwoods.daffodildb.server.sql99.dql.interfaces._SelectColumnCharacteristics method*/
161       throw new java.lang.UnsupportedOperationException JavaDoc("Method getExpression() not yet implemented.");
162    }
163
164    public Collator getCollator() throws DException {
165       /** @todo impelment this method */
166       throw new UnsupportedOperationException JavaDoc("Method not yet implemented");
167    }
168
169    public Object JavaDoc[] getCorresspondingColumnsForFromSubQueryColumn(Object JavaDoc column) throws DException {
170       return cc.getCorresspondingColumnsForFromSubQueryColumn(column);
171    }
172
173    public _ColumnCharacteristics getCCFromIndexes(_ColumnCharacteristics cc, int offset, int[] columnIndexes) throws DException {
174       throw new UnsupportedOperationException JavaDoc("getCCFromIndexes(cc, offset, columnIndexes) method not implemented yet");
175    }
176 }
177
Popular Tags