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 {
getUrl()61   String getUrl() throws SQLException;
62 
setUrl(String url)63   void setUrl(String url) throws SQLException;
64 
getDataSourceName()65   String getDataSourceName();
66 
setDataSourceName(String name)67   void setDataSourceName(String name) throws SQLException;
68 
getUsername()69   String getUsername();
70 
setUsername(String name)71   void setUsername(String name) throws SQLException;
72 
getPassword()73   String getPassword();
74 
setPassword(String password)75   void setPassword(String password) throws SQLException;
76 
getTransactionIsolation()77   int getTransactionIsolation();
78 
setTransactionIsolation(int level)79   void setTransactionIsolation(int level) throws SQLException;
80 
getTypeMap()81   Map getTypeMap() throws SQLException;
82 
setTypeMap(Map map)83   void setTypeMap(Map map) throws SQLException;
84 
getCommand()85   String getCommand();
86 
setCommand(String cmd)87   void setCommand(String cmd) throws SQLException;
88 
isReadOnly()89   boolean isReadOnly();
90 
setReadOnly(boolean value)91   void setReadOnly(boolean value) throws SQLException;
92 
getMaxFieldSize()93   int getMaxFieldSize() throws SQLException;
94 
setMaxFieldSize(int max)95   void setMaxFieldSize(int max) throws SQLException;
96 
getMaxRows()97   int getMaxRows() throws SQLException;
98 
setMaxRows(int max)99   void setMaxRows(int max) throws SQLException;
100 
getEscapeProcessing()101   boolean getEscapeProcessing() throws SQLException;
102 
setEscapeProcessing(boolean enable)103   void setEscapeProcessing(boolean enable) throws SQLException;
104 
getQueryTimeout()105   int getQueryTimeout() throws SQLException;
106 
setQueryTimeout(int seconds)107   void setQueryTimeout(int seconds) throws SQLException;
108 
setType(int type)109   void setType(int type) throws SQLException;
110 
setConcurrency(int concurrency)111   void setConcurrency(int concurrency) throws SQLException;
112 
setNull(int parameterIndex, int sqlType)113   void setNull(int parameterIndex, int sqlType) throws SQLException;
114 
setNull(int paramIndex, int sqlType, String typeName)115   void setNull(int paramIndex, int sqlType, String typeName) throws
116       SQLException;
117 
setBoolean(int parameterIndex, boolean x)118   void setBoolean(int parameterIndex, boolean x) throws SQLException;
119 
setByte(int parameterIndex, byte x)120   void setByte(int parameterIndex, byte x) throws SQLException;
121 
setShort(int parameterIndex, short x)122   void setShort(int parameterIndex, short x) throws SQLException;
123 
setInt(int parameterIndex, int x)124   void setInt(int parameterIndex, int x) throws SQLException;
125 
setLong(int parameterIndex, long x)126   void setLong(int parameterIndex, long x) throws SQLException;
127 
setFloat(int parameterIndex, float x)128   void setFloat(int parameterIndex, float x) throws SQLException;
129 
setDouble(int parameterIndex, double x)130   void setDouble(int parameterIndex, double x) throws SQLException;
131 
setBigDecimal(int parameterIndex, BigDecimal x)132   void setBigDecimal(int parameterIndex, BigDecimal x) throws
133       SQLException;
134 
setString(int parameterIndex, String x)135   void setString(int parameterIndex, String x) throws SQLException;
136 
setBytes(int parameterIndex, byte[] x)137   void setBytes(int parameterIndex, byte[] x) throws SQLException;
138 
setDate(int parameterIndex, Date x)139   void setDate(int parameterIndex, Date x) throws SQLException;
140 
setTime(int parameterIndex, Time x)141   void setTime(int parameterIndex, Time x) throws SQLException;
142 
setTimestamp(int parameterIndex, Timestamp x)143   void setTimestamp(int parameterIndex, Timestamp x) throws
144       SQLException;
145 
setAsciiStream(int parameterIndex, InputStream x, int length)146   void setAsciiStream(int parameterIndex, InputStream x, int length)
147       throws SQLException;
148 
setBinaryStream(int parameterIndex, InputStream x, int length)149   void setBinaryStream(int parameterIndex, InputStream x, int length)
150       throws SQLException;
151 
setCharacterStream(int parameterIndex, Reader reader, int length)152   void setCharacterStream(int parameterIndex, Reader reader, int
153       length) throws SQLException;
154 
setObject(int parameterIndex, Object x, int targetSqlType, int scale)155   void setObject(int parameterIndex, Object x, int targetSqlType, int
156       scale) throws SQLException;
157 
setObject(int parameterIndex, Object x, int targetSqlType)158   void setObject(int parameterIndex, Object x, int targetSqlType)
159       throws SQLException;
160 
setObject(int parameterIndex, Object x)161   void setObject(int parameterIndex, Object x) throws SQLException;
162 
setRef(int i, Ref x)163   void setRef(int i, Ref x) throws SQLException;
164 
setBlob(int i, Blob x)165   void setBlob(int i, Blob x) throws SQLException;
166 
setClob(int i, Clob x)167   void setClob(int i, Clob x) throws SQLException;
168 
setArray(int i, Array x)169   void setArray(int i, Array x) throws SQLException;
170 
setDate(int parameterIndex, Date x, Calendar cal)171   void setDate(int parameterIndex, Date x, Calendar cal) throws
172       SQLException;
173 
setTime(int parameterIndex, Time x, Calendar cal)174   void setTime(int parameterIndex, Time x, Calendar cal) throws
175       SQLException;
176 
setTimestamp(int parameterIndex, Timestamp x, Calendar cal)177   void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
178       throws SQLException;
179 
clearParameters()180   void clearParameters() throws SQLException;
181 
execute()182   void execute() throws SQLException;
183 
addRowSetListener(RowSetListener listener)184   void addRowSetListener(RowSetListener listener);
185 
removeRowSetListener(RowSetListener listener)186   void removeRowSetListener(RowSetListener listener);
187 }
188