1 | /* RowSet.java
|
---|
2 | Copyright (C) 2002 Free Software Foundation, Inc.
|
---|
3 |
|
---|
4 | This file is part of GNU Classpath.
|
---|
5 |
|
---|
6 | GNU Classpath is free software; you can redistribute it and/or modify
|
---|
7 | it under the terms of the GNU General Public License as published by
|
---|
8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | any later version.
|
---|
10 |
|
---|
11 | GNU Classpath is distributed in the hope that it will be useful, but
|
---|
12 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | General Public License for more details.
|
---|
15 |
|
---|
16 | You should have received a copy of the GNU General Public License
|
---|
17 | along with GNU Classpath; see the file COPYING. If not, write to the
|
---|
18 | Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
---|
19 | 02111-1307 USA.
|
---|
20 |
|
---|
21 | Linking this library statically or dynamically with other modules is
|
---|
22 | making a combined work based on this library. Thus, the terms and
|
---|
23 | conditions of the GNU General Public License cover the whole
|
---|
24 | combination.
|
---|
25 |
|
---|
26 | As a special exception, the copyright holders of this library give you
|
---|
27 | permission to link this library with independent modules to produce an
|
---|
28 | executable, regardless of the license terms of these independent
|
---|
29 | modules, and to copy and distribute the resulting executable under
|
---|
30 | terms of your choice, provided that you also meet, for each linked
|
---|
31 | independent module, the terms and conditions of the license of that
|
---|
32 | module. An independent module is a module which is not derived from
|
---|
33 | or based on this library. If you modify this library, you may extend
|
---|
34 | this exception to your version of the library, but you are not
|
---|
35 | obligated to do so. If you do not wish to do so, delete this
|
---|
36 | exception statement from your version. */
|
---|
37 |
|
---|
38 |
|
---|
39 | package javax.sql;
|
---|
40 |
|
---|
41 | import java.io.InputStream;
|
---|
42 | import java.io.Reader;
|
---|
43 | import java.math.BigDecimal;
|
---|
44 | import java.sql.Array;
|
---|
45 | import java.sql.Blob;
|
---|
46 | import java.sql.Clob;
|
---|
47 | import java.sql.Date;
|
---|
48 | import java.sql.Ref;
|
---|
49 | import java.sql.ResultSet;
|
---|
50 | import java.sql.SQLException;
|
---|
51 | import java.sql.Time;
|
---|
52 | import java.sql.Timestamp;
|
---|
53 | import java.util.Calendar;
|
---|
54 | import java.util.Map;
|
---|
55 |
|
---|
56 | /**
|
---|
57 | * @since 1.4
|
---|
58 | */
|
---|
59 | public interface RowSet extends ResultSet
|
---|
60 | {
|
---|
61 | /**
|
---|
62 | * @since 1.4
|
---|
63 | */
|
---|
64 | public String getUrl() throws SQLException;
|
---|
65 |
|
---|
66 | /**
|
---|
67 | * @since 1.4
|
---|
68 | */
|
---|
69 | public void setUrl(String url) throws SQLException;
|
---|
70 |
|
---|
71 | /**
|
---|
72 | * @since 1.4
|
---|
73 | */
|
---|
74 | public String getDataSourceName();
|
---|
75 |
|
---|
76 | /**
|
---|
77 | * @since 1.4
|
---|
78 | */
|
---|
79 | public void setDataSourceName(String name) throws SQLException;
|
---|
80 |
|
---|
81 | /**
|
---|
82 | * @since 1.4
|
---|
83 | */
|
---|
84 | public String getUsername();
|
---|
85 |
|
---|
86 | /**
|
---|
87 | * @since 1.4
|
---|
88 | */
|
---|
89 | public void setUsername(String name) throws SQLException;
|
---|
90 |
|
---|
91 | /**
|
---|
92 | * @since 1.4
|
---|
93 | */
|
---|
94 | public String getPassword();
|
---|
95 |
|
---|
96 | /**
|
---|
97 | * @since 1.4
|
---|
98 | */
|
---|
99 | public void setPassword(String password) throws SQLException;
|
---|
100 |
|
---|
101 | /**
|
---|
102 | * @since 1.4
|
---|
103 | */
|
---|
104 | public int getTransactionIsolation();
|
---|
105 |
|
---|
106 | /**
|
---|
107 | * @since 1.4
|
---|
108 | */
|
---|
109 | public void setTransactionIsolation(int level) throws SQLException;
|
---|
110 |
|
---|
111 | /**
|
---|
112 | * @since 1.4
|
---|
113 | */
|
---|
114 | public Map getTypeMap() throws SQLException;
|
---|
115 |
|
---|
116 | /**
|
---|
117 | * @since 1.4
|
---|
118 | */
|
---|
119 | public void setTypeMap(Map map) throws SQLException;
|
---|
120 |
|
---|
121 | /**
|
---|
122 | * @since 1.4
|
---|
123 | */
|
---|
124 | public String getCommand();
|
---|
125 |
|
---|
126 | /**
|
---|
127 | * @since 1.4
|
---|
128 | */
|
---|
129 | public void setCommand(String cmd) throws SQLException;
|
---|
130 |
|
---|
131 | /**
|
---|
132 | * @since 1.4
|
---|
133 | */
|
---|
134 | public boolean isReadOnly();
|
---|
135 |
|
---|
136 | /**
|
---|
137 | * @since 1.4
|
---|
138 | */
|
---|
139 | public void setReadOnly(boolean value) throws SQLException;
|
---|
140 |
|
---|
141 | /**
|
---|
142 | * @since 1.4
|
---|
143 | */
|
---|
144 | public int getMaxFieldSize() throws SQLException;
|
---|
145 |
|
---|
146 | /**
|
---|
147 | * @since 1.4
|
---|
148 | */
|
---|
149 | public void setMaxFieldSize(int max) throws SQLException;
|
---|
150 |
|
---|
151 | /**
|
---|
152 | * @since 1.4
|
---|
153 | */
|
---|
154 | public int getMaxRows() throws SQLException;
|
---|
155 |
|
---|
156 | /**
|
---|
157 | * @since 1.4
|
---|
158 | */
|
---|
159 | public void setMaxRows(int max) throws SQLException;
|
---|
160 |
|
---|
161 | /**
|
---|
162 | * @since 1.4
|
---|
163 | */
|
---|
164 | public boolean getEscapeProcessing() throws SQLException;
|
---|
165 |
|
---|
166 | /**
|
---|
167 | * @since 1.4
|
---|
168 | */
|
---|
169 | public void setEscapeProcessing(boolean enable) throws SQLException;
|
---|
170 |
|
---|
171 | /**
|
---|
172 | * @since 1.4
|
---|
173 | */
|
---|
174 | public int getQueryTimeout() throws SQLException;
|
---|
175 |
|
---|
176 | /**
|
---|
177 | * @since 1.4
|
---|
178 | */
|
---|
179 | public void setQueryTimeout(int seconds) throws SQLException;
|
---|
180 |
|
---|
181 | /**
|
---|
182 | * @since 1.4
|
---|
183 | */
|
---|
184 | public void setType(int type) throws SQLException;
|
---|
185 |
|
---|
186 | /**
|
---|
187 | * @since 1.4
|
---|
188 | */
|
---|
189 | public void setConcurrency(int concurrency) throws SQLException;
|
---|
190 |
|
---|
191 | /**
|
---|
192 | * @since 1.4
|
---|
193 | */
|
---|
194 | public void setNull(int parameterIndex, int sqlType) throws SQLException;
|
---|
195 |
|
---|
196 | /**
|
---|
197 | * @since 1.4
|
---|
198 | */
|
---|
199 | public void setNull(int paramIndex, int sqlType, String typeName) throws
|
---|
200 | SQLException;
|
---|
201 |
|
---|
202 | /**
|
---|
203 | * @since 1.4
|
---|
204 | */
|
---|
205 | public void setBoolean(int parameterIndex, boolean x) throws SQLException;
|
---|
206 |
|
---|
207 | /**
|
---|
208 | * @since 1.4
|
---|
209 | */
|
---|
210 | public void setByte(int parameterIndex, byte x) throws SQLException;
|
---|
211 |
|
---|
212 | /**
|
---|
213 | * @since 1.4
|
---|
214 | */
|
---|
215 | public void setShort(int parameterIndex, short x) throws SQLException;
|
---|
216 |
|
---|
217 | /**
|
---|
218 | * @since 1.4
|
---|
219 | */
|
---|
220 | public void setInt(int parameterIndex, int x) throws SQLException;
|
---|
221 |
|
---|
222 | /**
|
---|
223 | * @since 1.4
|
---|
224 | */
|
---|
225 | public void setLong(int parameterIndex, long x) throws SQLException;
|
---|
226 |
|
---|
227 | /**
|
---|
228 | * @since 1.4
|
---|
229 | */
|
---|
230 | public void setFloat(int parameterIndex, float x) throws SQLException;
|
---|
231 |
|
---|
232 | /**
|
---|
233 | * @since 1.4
|
---|
234 | */
|
---|
235 | public void setDouble(int parameterIndex, double x) throws SQLException;
|
---|
236 |
|
---|
237 | /**
|
---|
238 | * @since 1.4
|
---|
239 | */
|
---|
240 | public void setBigDecimal(int parameterIndex, BigDecimal x) throws
|
---|
241 | SQLException;
|
---|
242 |
|
---|
243 | /**
|
---|
244 | * @since 1.4
|
---|
245 | */
|
---|
246 | public void setString(int parameterIndex, String x) throws SQLException;
|
---|
247 |
|
---|
248 | /**
|
---|
249 | * @since 1.4
|
---|
250 | */
|
---|
251 | public void setBytes(int parameterIndex, byte[] x) throws SQLException;
|
---|
252 |
|
---|
253 | /**
|
---|
254 | * @since 1.4
|
---|
255 | */
|
---|
256 | public void setDate(int parameterIndex, Date x) throws SQLException;
|
---|
257 |
|
---|
258 | /**
|
---|
259 | * @since 1.4
|
---|
260 | */
|
---|
261 | public void setTime(int parameterIndex, Time x) throws SQLException;
|
---|
262 |
|
---|
263 | /**
|
---|
264 | * @since 1.4
|
---|
265 | */
|
---|
266 | public void setTimestamp(int parameterIndex, Timestamp x) throws
|
---|
267 | SQLException;
|
---|
268 |
|
---|
269 | /**
|
---|
270 | * @since 1.4
|
---|
271 | */
|
---|
272 | public void setAsciiStream(int parameterIndex, InputStream x, int length)
|
---|
273 | throws SQLException;
|
---|
274 |
|
---|
275 | /**
|
---|
276 | * @since 1.4
|
---|
277 | */
|
---|
278 | public void setBinaryStream(int parameterIndex, InputStream x, int length)
|
---|
279 | throws SQLException;
|
---|
280 |
|
---|
281 | /**
|
---|
282 | * @since 1.4
|
---|
283 | */
|
---|
284 | public void setCharacterStream(int parameterIndex, Reader reader, int
|
---|
285 | length) throws SQLException;
|
---|
286 |
|
---|
287 | /**
|
---|
288 | * @since 1.4
|
---|
289 | */
|
---|
290 | public void setObject(int parameterIndex, Object x, int targetSqlType, int
|
---|
291 | scale) throws SQLException;
|
---|
292 |
|
---|
293 | /**
|
---|
294 | * @since 1.4
|
---|
295 | */
|
---|
296 | public void setObject(int parameterIndex, Object x, int targetSqlType)
|
---|
297 | throws SQLException;
|
---|
298 |
|
---|
299 | /**
|
---|
300 | * @since 1.4
|
---|
301 | */
|
---|
302 | public void setObject(int parameterIndex, Object x) throws SQLException;
|
---|
303 |
|
---|
304 | /**
|
---|
305 | * @since 1.4
|
---|
306 | */
|
---|
307 | public void setRef(int i, Ref x) throws SQLException;
|
---|
308 |
|
---|
309 | /**
|
---|
310 | * @since 1.4
|
---|
311 | */
|
---|
312 | public void setBlob(int i, Blob x) throws SQLException;
|
---|
313 |
|
---|
314 | /**
|
---|
315 | * @since 1.4
|
---|
316 | */
|
---|
317 | public void setClob(int i, Clob x) throws SQLException;
|
---|
318 |
|
---|
319 | /**
|
---|
320 | * @since 1.4
|
---|
321 | */
|
---|
322 | public void setArray(int i, Array x) throws SQLException;
|
---|
323 |
|
---|
324 | /**
|
---|
325 | * @since 1.4
|
---|
326 | */
|
---|
327 | public void setDate(int parameterIndex, Date x, Calendar cal) throws
|
---|
328 | SQLException;
|
---|
329 |
|
---|
330 | /**
|
---|
331 | * @since 1.4
|
---|
332 | */
|
---|
333 | public void setTime(int parameterIndex, Time x, Calendar cal) throws
|
---|
334 | SQLException;
|
---|
335 |
|
---|
336 | /**
|
---|
337 | * @since 1.4
|
---|
338 | */
|
---|
339 | public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
|
---|
340 | throws SQLException;
|
---|
341 |
|
---|
342 | /**
|
---|
343 | * @since 1.4
|
---|
344 | */
|
---|
345 | public void clearParameters() throws SQLException;
|
---|
346 |
|
---|
347 | /**
|
---|
348 | * @since 1.4
|
---|
349 | */
|
---|
350 | public void execute() throws SQLException;
|
---|
351 |
|
---|
352 | /**
|
---|
353 | * @since 1.4
|
---|
354 | */
|
---|
355 | public void addRowSetListener(RowSetListener listener);
|
---|
356 |
|
---|
357 | /**
|
---|
358 | * @since 1.4
|
---|
359 | */
|
---|
360 | public void removeRowSetListener(RowSetListener listener);
|
---|
361 | }
|
---|