KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nilostep > xlsql > jdbc > xlResultSetMetaData


1 /*
2  * x l S Q L
3  * (c) Jim Caprioli, NiLOSTEP.com
4  * See xlSQL-license.txt for license details
5  *
6  */

7 package com.nilostep.xlsql.jdbc;
8
9 import java.sql.*;
10
11
12 public class xlResultSetMetaData implements java.sql.ResultSetMetaData JavaDoc {
13
14     private ResultSetMetaData dbRsMeta;
15     private xlResultSet xlRs;
16     //~ Constructors ···························································
17

18     /**
19     * Constructs a new StatementImpl object.
20     *
21     */

22     public xlResultSetMetaData(xlResultSet rs, ResultSetMetaData rsmeta) {
23         xlRs = rs;
24         dbRsMeta = rsmeta;
25     }
26
27     //~ Methods ································································
28

29     /**
30     * Implements method in interface java.sql.ResultSetMetaData
31     * @see java.sql.ResultSetMetaData#getCatalogName
32     */

33     public String JavaDoc getCatalogName(int column) throws java.sql.SQLException JavaDoc {
34         return dbRsMeta.getCatalogName(column);
35     }
36
37     /**
38     * Implements method in interface java.sql.ResultSetMetaData
39     * @see java.sql.ResultSetMetaData#getColumnClassName
40     */

41     public String JavaDoc getColumnClassName(int column) throws java.sql.SQLException JavaDoc {
42         return dbRsMeta.getColumnClassName(column);
43     }
44
45     /**
46     * Implements method in interface java.sql.ResultSetMetaData
47     * @see java.sql.ResultSetMetaData#getColumnCount
48     */

49     public int getColumnCount() throws java.sql.SQLException JavaDoc {
50         return dbRsMeta.getColumnCount();
51     }
52
53     /**
54     * Implements method in interface java.sql.ResultSetMetaData
55     * @see java.sql.ResultSetMetaData#getColumnDisplaySize
56     */

57     public int getColumnDisplaySize(int column) throws java.sql.SQLException JavaDoc {
58         return dbRsMeta.getColumnDisplaySize(column);
59     }
60
61     /**
62     * Implements method in interface java.sql.ResultSetMetaData
63     * @see java.sql.ResultSetMetaData#getColumnLabel
64     */

65     public String JavaDoc getColumnLabel(int column) throws java.sql.SQLException JavaDoc {
66         return dbRsMeta.getColumnLabel(column);
67     }
68
69     /**
70     * Implements method in interface java.sql.ResultSetMetaData
71     * @see java.sql.ResultSetMetaData#getColumnName
72     */

73     public String JavaDoc getColumnName(int column) throws java.sql.SQLException JavaDoc {
74         return dbRsMeta.getColumnName(column);
75     }
76
77     /**
78     * Implements method in interface java.sql.ResultSetMetaData
79     * @see java.sql.ResultSetMetaData#getColumnType
80     */

81     public int getColumnType(int column) throws java.sql.SQLException JavaDoc {
82         return dbRsMeta.getColumnType(column);
83     }
84
85     /**
86     * Implements method in interface java.sql.ResultSetMetaData
87     * @see java.sql.ResultSetMetaData#getColumnTypeName
88     */

89     public String JavaDoc getColumnTypeName(int column) throws java.sql.SQLException JavaDoc {
90         return dbRsMeta.getColumnTypeName(column);
91     }
92
93     /**
94     * Implements method in interface java.sql.ResultSetMetaData
95     * @see java.sql.ResultSetMetaData#getPrecision
96     */

97     public int getPrecision(int column) throws java.sql.SQLException JavaDoc {
98         return dbRsMeta.getPrecision(column);
99     }
100
101     /**
102     * Implements method in interface java.sql.ResultSetMetaData
103     * @see java.sql.ResultSetMetaData#getScale
104     */

105     public int getScale(int column) throws java.sql.SQLException JavaDoc {
106         return dbRsMeta.getScale(column);
107     }
108
109     /**
110     * Implements method in interface java.sql.ResultSetMetaData
111     * @see java.sql.ResultSetMetaData#getSchemaName
112     */

113     public String JavaDoc getSchemaName(int column) throws java.sql.SQLException JavaDoc {
114         return dbRsMeta.getSchemaName(column);
115     }
116
117     /**
118     * Implements method in interface java.sql.ResultSetMetaData
119     * @see java.sql.ResultSetMetaData#getTableName
120     */

121     public String JavaDoc getTableName(int column) throws java.sql.SQLException JavaDoc {
122         return dbRsMeta.getTableName(column);
123     }
124
125     /**
126     * Implements method in interface java.sql.ResultSetMetaData
127     * @see java.sql.ResultSetMetaData#isAutoIncrement
128     */

129     public boolean isAutoIncrement(int column) throws java.sql.SQLException JavaDoc {
130         return dbRsMeta.isAutoIncrement(column);
131     }
132
133     /**
134     * Implements method in interface java.sql.ResultSetMetaData
135     * @see java.sql.ResultSetMetaData#isCaseSensitive
136     */

137     public boolean isCaseSensitive(int column) throws java.sql.SQLException JavaDoc {
138         return dbRsMeta.isCaseSensitive(column);
139     }
140
141     /**
142     * Implements method in interface java.sql.ResultSetMetaData
143     * @see java.sql.ResultSetMetaData#isCurrency
144     */

145     public boolean isCurrency(int column) throws java.sql.SQLException JavaDoc {
146         return dbRsMeta.isCurrency(column);
147     }
148
149     /**
150     * Implements method in interface java.sql.ResultSetMetaData
151     * @see java.sql.ResultSetMetaData#isDefinitelyWritable
152     */

153     public boolean isDefinitelyWritable(int column) throws java.sql.SQLException JavaDoc {
154         return dbRsMeta.isDefinitelyWritable(column);
155     }
156
157     /**
158     * Implements method in interface java.sql.ResultSetMetaData
159     * @see java.sql.ResultSetMetaData#isNullable
160     */

161     public int isNullable(int column) throws java.sql.SQLException JavaDoc {
162         return dbRsMeta.isNullable(column);
163     }
164
165     /**
166     * Implements method in interface java.sql.ResultSetMetaData
167     * @see java.sql.ResultSetMetaData#isReadOnly
168     */

169     public boolean isReadOnly(int column) throws java.sql.SQLException JavaDoc {
170         return dbRsMeta.isReadOnly(column);
171     }
172
173     /**
174     * Implements method in interface java.sql.ResultSetMetaData
175     * @see java.sql.ResultSetMetaData#isSearchable
176     */

177     public boolean isSearchable(int column) throws java.sql.SQLException JavaDoc {
178         return dbRsMeta.isSearchable(column);
179     }
180
181     /**
182     * Implements method in interface java.sql.ResultSetMetaData
183     * @see java.sql.ResultSetMetaData#isSigned
184     */

185     public boolean isSigned(int column) throws java.sql.SQLException JavaDoc {
186         return dbRsMeta.isSigned(column);
187     }
188
189     /**
190     * Implements method in interface java.sql.ResultSetMetaData
191     * @see java.sql.ResultSetMetaData#isWritable
192     */

193     public boolean isWritable(int column) throws java.sql.SQLException JavaDoc {
194         return dbRsMeta.isWritable(column);
195     }
196 }
Popular Tags