51 |
/** |
/** |
52 |
* The column does not allow NULL's. |
* The column does not allow NULL's. |
53 |
*/ |
*/ |
54 |
public static final int columnNoNulls = 0; |
int columnNoNulls = 0; |
55 |
|
|
56 |
/** |
/** |
57 |
* The column allows NULL's. |
* The column allows NULL's. |
58 |
*/ |
*/ |
59 |
public static final int columnNullable = 1; |
int columnNullable = 1; |
60 |
|
|
61 |
/** |
/** |
62 |
* It is unknown whether or not the column allows NULL's. |
* It is unknown whether or not the column allows NULL's. |
63 |
*/ |
*/ |
64 |
public static final int columnNullableUnknown = 2; |
int columnNullableUnknown = 2; |
65 |
|
|
66 |
/** |
/** |
67 |
* This method returns the number of columns in the result set. |
* This method returns the number of columns in the result set. |
69 |
* @return The number of columns in the result set. |
* @return The number of columns in the result set. |
70 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
71 |
*/ |
*/ |
72 |
public int getColumnCount() throws SQLException; |
int getColumnCount() throws SQLException; |
73 |
|
|
74 |
/** |
/** |
75 |
* This method test whether or not the column is an auto-increment column. |
* This method test whether or not the column is an auto-increment column. |
80 |
* otherwise. |
* otherwise. |
81 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
82 |
*/ |
*/ |
83 |
public boolean isAutoIncrement(int column) throws SQLException; |
boolean isAutoIncrement(int column) throws SQLException; |
84 |
|
|
85 |
/** |
/** |
86 |
* This method tests whether or not a column is case sensitive in its values. |
* This method tests whether or not a column is case sensitive in its values. |
90 |
* <code>false</code> otherwise. |
* <code>false</code> otherwise. |
91 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
92 |
*/ |
*/ |
93 |
public boolean isCaseSensitive(int column) throws SQLException; |
boolean isCaseSensitive(int column) throws SQLException; |
94 |
|
|
95 |
/** |
/** |
96 |
* This method tests whether not the specified column can be used in |
* This method tests whether not the specified column can be used in |
101 |
* <code>false</code> otherwise. |
* <code>false</code> otherwise. |
102 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
103 |
*/ |
*/ |
104 |
public boolean isSearchable(int column) throws SQLException; |
boolean isSearchable(int column) throws SQLException; |
105 |
|
|
106 |
/** |
/** |
107 |
* This method tests whether or not the column stores a monetary value. |
* This method tests whether or not the column stores a monetary value. |
111 |
* <code>false</code> otherwise. |
* <code>false</code> otherwise. |
112 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
113 |
*/ |
*/ |
114 |
public boolean isCurrency(int column) throws SQLException; |
boolean isCurrency(int column) throws SQLException; |
115 |
|
|
116 |
/** |
/** |
117 |
* This method returns a value indicating whether or not the specified |
* This method returns a value indicating whether or not the specified |
123 |
* <code>columnNullable</code>, or <code>columnNullableUnknown</code>. |
* <code>columnNullable</code>, or <code>columnNullableUnknown</code>. |
124 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
125 |
*/ |
*/ |
126 |
public int isNullable(int column) throws SQLException; |
int isNullable(int column) throws SQLException; |
127 |
|
|
128 |
/** |
/** |
129 |
* This method tests whether or not the value of the specified column |
* This method tests whether or not the value of the specified column |
134 |
* otherwise. |
* otherwise. |
135 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
136 |
*/ |
*/ |
137 |
public boolean isSigned(int column) throws SQLException; |
boolean isSigned(int column) throws SQLException; |
138 |
|
|
139 |
/** |
/** |
140 |
* This method returns the maximum number of characters that can be used |
* This method returns the maximum number of characters that can be used |
145 |
* value for this column. |
* value for this column. |
146 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
147 |
*/ |
*/ |
148 |
public int getColumnDisplaySize(int column) throws SQLException; |
int getColumnDisplaySize(int column) throws SQLException; |
149 |
|
|
150 |
/** |
/** |
151 |
* This method returns a string that should be used as a caption for this |
* This method returns a string that should be used as a caption for this |
155 |
* @return A display string for the column. |
* @return A display string for the column. |
156 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
157 |
*/ |
*/ |
158 |
public String getColumnLabel(int column) throws SQLException; |
String getColumnLabel(int column) throws SQLException; |
159 |
|
|
160 |
/** |
/** |
161 |
* This method returns the name of the specified column. |
* This method returns the name of the specified column. |
164 |
* @return The name of the column. |
* @return The name of the column. |
165 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
166 |
*/ |
*/ |
167 |
public String getColumnName(int column) throws SQLException; |
String getColumnName(int column) throws SQLException; |
168 |
|
|
169 |
/** |
/** |
170 |
* This method returns the name of the schema that contains the specified |
* This method returns the name of the schema that contains the specified |
174 |
* @return The name of the schema that contains the column. |
* @return The name of the schema that contains the column. |
175 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
176 |
*/ |
*/ |
177 |
public String getSchemaName(int column) throws SQLException; |
String getSchemaName(int column) throws SQLException; |
178 |
|
|
179 |
/** |
/** |
180 |
* This method returns the precision of the specified column, which is the |
* This method returns the precision of the specified column, which is the |
184 |
* @return The precision of the specified column. |
* @return The precision of the specified column. |
185 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
186 |
*/ |
*/ |
187 |
public int getPrecision(int column) throws SQLException; |
int getPrecision(int column) throws SQLException; |
188 |
|
|
189 |
/** |
/** |
190 |
* This method returns the scale of the specified column, which is the |
* This method returns the scale of the specified column, which is the |
194 |
* @return The scale of the column. |
* @return The scale of the column. |
195 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
196 |
*/ |
*/ |
197 |
public int getScale(int column) throws SQLException; |
int getScale(int column) throws SQLException; |
198 |
|
|
199 |
/** |
/** |
200 |
* This method returns the name of the table containing the specified |
* This method returns the name of the table containing the specified |
204 |
* @return The name of the table containing the column. |
* @return The name of the table containing the column. |
205 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
206 |
*/ |
*/ |
207 |
public String getTableName(int column) throws SQLException; |
String getTableName(int column) throws SQLException; |
208 |
|
|
209 |
/** |
/** |
210 |
* This method returns the name of the catalog containing the specified |
* This method returns the name of the catalog containing the specified |
214 |
* @return The name of the catalog containing the column. |
* @return The name of the catalog containing the column. |
215 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
216 |
*/ |
*/ |
217 |
public String getCatalogName(int column) throws SQLException; |
String getCatalogName(int column) throws SQLException; |
218 |
|
|
219 |
/** |
/** |
220 |
* This method returns the SQL type of the specified column. This will |
* This method returns the SQL type of the specified column. This will |
225 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
226 |
* @see Types |
* @see Types |
227 |
*/ |
*/ |
228 |
public int getColumnType(int column) throws SQLException; |
int getColumnType(int column) throws SQLException; |
229 |
|
|
230 |
/** |
/** |
231 |
* This method returns the name of the SQL type for this column. |
* This method returns the name of the SQL type for this column. |
234 |
* @return The name of the SQL type for this column. |
* @return The name of the SQL type for this column. |
235 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
236 |
*/ |
*/ |
237 |
public String getColumnTypeName(int column) throws SQLException; |
String getColumnTypeName(int column) throws SQLException; |
238 |
|
|
239 |
/** |
/** |
240 |
* This method tests whether or not the specified column is read only. |
* This method tests whether or not the specified column is read only. |
244 |
* otherwise. |
* otherwise. |
245 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
246 |
*/ |
*/ |
247 |
public boolean isReadOnly(int column) throws SQLException; |
boolean isReadOnly(int column) throws SQLException; |
248 |
|
|
249 |
/** |
/** |
250 |
* This method tests whether or not the column may be writable. This |
* This method tests whether or not the column may be writable. This |
255 |
* <code>false</code> otherwise. |
* <code>false</code> otherwise. |
256 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
257 |
*/ |
*/ |
258 |
public boolean isWritable(int column) throws SQLException; |
boolean isWritable(int column) throws SQLException; |
259 |
|
|
260 |
/** |
/** |
261 |
* This method tests whether or not the column is writable. This |
* This method tests whether or not the column is writable. This |
266 |
* <code>false</code> otherwise. |
* <code>false</code> otherwise. |
267 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
268 |
*/ |
*/ |
269 |
public boolean isDefinitelyWritable(int column) throws SQLException; |
boolean isDefinitelyWritable(int column) throws SQLException; |
270 |
|
|
271 |
/** |
/** |
272 |
* This method returns the name of the Java class which will be used to |
* This method returns the name of the Java class which will be used to |
277 |
* this column. |
* this column. |
278 |
* @exception SQLException If an error occurs. |
* @exception SQLException If an error occurs. |
279 |
*/ |
*/ |
280 |
public String getColumnClassName(int column) throws SQLException; |
String getColumnClassName(int column) throws SQLException; |
281 |
} |
} |