|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ResultSetMetaDataWrapper.java | - | 0% | 0% | 0% |
|
1 |
/*
|
|
2 |
* Joey and its relative products are published under the terms
|
|
3 |
* of the Apache Software License.
|
|
4 |
*/
|
|
5 |
/*
|
|
6 |
* Created on 2003/12/11
|
|
7 |
*/
|
|
8 |
package org.asyrinx.brownie.jdbc.wrapper;
|
|
9 |
|
|
10 |
import java.sql.ResultSetMetaData;
|
|
11 |
import java.sql.SQLException;
|
|
12 |
|
|
13 |
import org.asyrinx.brownie.core.util.Wrapper;
|
|
14 |
|
|
15 |
/**
|
|
16 |
* @author akima
|
|
17 |
*/
|
|
18 |
public class ResultSetMetaDataWrapper extends Wrapper implements |
|
19 |
ResultSetMetaData { |
|
20 |
|
|
21 |
/**
|
|
22 |
* @param wrapped
|
|
23 |
*/
|
|
24 | 0 |
public ResultSetMetaDataWrapper(ResultSetMetaData resultSetMetaData) {
|
25 | 0 |
super(resultSetMetaData);
|
26 | 0 |
this.resultSetMetaData = resultSetMetaData;
|
27 |
} |
|
28 |
|
|
29 |
private final ResultSetMetaData resultSetMetaData;
|
|
30 |
|
|
31 |
/**
|
|
32 |
* @param column
|
|
33 |
* @return @throws
|
|
34 |
* java.sql.SQLException
|
|
35 |
*/
|
|
36 | 0 |
public String getCatalogName(int column) throws SQLException { |
37 | 0 |
return resultSetMetaData.getCatalogName(column);
|
38 |
} |
|
39 |
|
|
40 |
/**
|
|
41 |
* @param column
|
|
42 |
* @return @throws
|
|
43 |
* java.sql.SQLException
|
|
44 |
*/
|
|
45 | 0 |
public String getColumnClassName(int column) throws SQLException { |
46 | 0 |
return resultSetMetaData.getColumnClassName(column);
|
47 |
} |
|
48 |
|
|
49 |
/**
|
|
50 |
* @return @throws
|
|
51 |
* java.sql.SQLException
|
|
52 |
*/
|
|
53 | 0 |
public int getColumnCount() throws SQLException { |
54 | 0 |
return resultSetMetaData.getColumnCount();
|
55 |
} |
|
56 |
|
|
57 |
/**
|
|
58 |
* @param column
|
|
59 |
* @return @throws
|
|
60 |
* java.sql.SQLException
|
|
61 |
*/
|
|
62 | 0 |
public int getColumnDisplaySize(int column) throws SQLException { |
63 | 0 |
return resultSetMetaData.getColumnDisplaySize(column);
|
64 |
} |
|
65 |
|
|
66 |
/**
|
|
67 |
* @param column
|
|
68 |
* @return @throws
|
|
69 |
* java.sql.SQLException
|
|
70 |
*/
|
|
71 | 0 |
public String getColumnLabel(int column) throws SQLException { |
72 | 0 |
return resultSetMetaData.getColumnLabel(column);
|
73 |
} |
|
74 |
|
|
75 |
/**
|
|
76 |
* @param column
|
|
77 |
* @return @throws
|
|
78 |
* java.sql.SQLException
|
|
79 |
*/
|
|
80 | 0 |
public String getColumnName(int column) throws SQLException { |
81 | 0 |
return resultSetMetaData.getColumnName(column);
|
82 |
} |
|
83 |
|
|
84 |
/**
|
|
85 |
* @param column
|
|
86 |
* @return @throws
|
|
87 |
* java.sql.SQLException
|
|
88 |
*/
|
|
89 | 0 |
public int getColumnType(int column) throws SQLException { |
90 | 0 |
return resultSetMetaData.getColumnType(column);
|
91 |
} |
|
92 |
|
|
93 |
/**
|
|
94 |
* @param column
|
|
95 |
* @return @throws
|
|
96 |
* java.sql.SQLException
|
|
97 |
*/
|
|
98 | 0 |
public String getColumnTypeName(int column) throws SQLException { |
99 | 0 |
return resultSetMetaData.getColumnTypeName(column);
|
100 |
} |
|
101 |
|
|
102 |
/**
|
|
103 |
* @param column
|
|
104 |
* @return @throws
|
|
105 |
* java.sql.SQLException
|
|
106 |
*/
|
|
107 | 0 |
public int getPrecision(int column) throws SQLException { |
108 | 0 |
return resultSetMetaData.getPrecision(column);
|
109 |
} |
|
110 |
|
|
111 |
/**
|
|
112 |
* @param column
|
|
113 |
* @return @throws
|
|
114 |
* java.sql.SQLException
|
|
115 |
*/
|
|
116 | 0 |
public int getScale(int column) throws SQLException { |
117 | 0 |
return resultSetMetaData.getScale(column);
|
118 |
} |
|
119 |
|
|
120 |
/**
|
|
121 |
* @param column
|
|
122 |
* @return @throws
|
|
123 |
* java.sql.SQLException
|
|
124 |
*/
|
|
125 | 0 |
public String getSchemaName(int column) throws SQLException { |
126 | 0 |
return resultSetMetaData.getSchemaName(column);
|
127 |
} |
|
128 |
|
|
129 |
/**
|
|
130 |
* @param column
|
|
131 |
* @return @throws
|
|
132 |
* java.sql.SQLException
|
|
133 |
*/
|
|
134 | 0 |
public String getTableName(int column) throws SQLException { |
135 | 0 |
return resultSetMetaData.getTableName(column);
|
136 |
} |
|
137 |
|
|
138 |
/**
|
|
139 |
* @param column
|
|
140 |
* @return @throws
|
|
141 |
* java.sql.SQLException
|
|
142 |
*/
|
|
143 | 0 |
public boolean isAutoIncrement(int column) throws SQLException { |
144 | 0 |
return resultSetMetaData.isAutoIncrement(column);
|
145 |
} |
|
146 |
|
|
147 |
/**
|
|
148 |
* @param column
|
|
149 |
* @return @throws
|
|
150 |
* java.sql.SQLException
|
|
151 |
*/
|
|
152 | 0 |
public boolean isCaseSensitive(int column) throws SQLException { |
153 | 0 |
return resultSetMetaData.isCaseSensitive(column);
|
154 |
} |
|
155 |
|
|
156 |
/**
|
|
157 |
* @param column
|
|
158 |
* @return @throws
|
|
159 |
* java.sql.SQLException
|
|
160 |
*/
|
|
161 | 0 |
public boolean isCurrency(int column) throws SQLException { |
162 | 0 |
return resultSetMetaData.isCurrency(column);
|
163 |
} |
|
164 |
|
|
165 |
/**
|
|
166 |
* @param column
|
|
167 |
* @return @throws
|
|
168 |
* java.sql.SQLException
|
|
169 |
*/
|
|
170 | 0 |
public boolean isDefinitelyWritable(int column) throws SQLException { |
171 | 0 |
return resultSetMetaData.isDefinitelyWritable(column);
|
172 |
} |
|
173 |
|
|
174 |
/**
|
|
175 |
* @param column
|
|
176 |
* @return @throws
|
|
177 |
* java.sql.SQLException
|
|
178 |
*/
|
|
179 | 0 |
public int isNullable(int column) throws SQLException { |
180 | 0 |
return resultSetMetaData.isNullable(column);
|
181 |
} |
|
182 |
|
|
183 |
/**
|
|
184 |
* @param column
|
|
185 |
* @return @throws
|
|
186 |
* java.sql.SQLException
|
|
187 |
*/
|
|
188 | 0 |
public boolean isReadOnly(int column) throws SQLException { |
189 | 0 |
return resultSetMetaData.isReadOnly(column);
|
190 |
} |
|
191 |
|
|
192 |
/**
|
|
193 |
* @param column
|
|
194 |
* @return @throws
|
|
195 |
* java.sql.SQLException
|
|
196 |
*/
|
|
197 | 0 |
public boolean isSearchable(int column) throws SQLException { |
198 | 0 |
return resultSetMetaData.isSearchable(column);
|
199 |
} |
|
200 |
|
|
201 |
/**
|
|
202 |
* @param column
|
|
203 |
* @return @throws
|
|
204 |
* java.sql.SQLException
|
|
205 |
*/
|
|
206 | 0 |
public boolean isSigned(int column) throws SQLException { |
207 | 0 |
return resultSetMetaData.isSigned(column);
|
208 |
} |
|
209 |
|
|
210 |
/**
|
|
211 |
* @param column
|
|
212 |
* @return @throws
|
|
213 |
* java.sql.SQLException
|
|
214 |
*/
|
|
215 | 0 |
public boolean isWritable(int column) throws SQLException { |
216 | 0 |
return resultSetMetaData.isWritable(column);
|
217 |
} |
|
218 |
|
|
219 |
} |
|