001 /* RowSet.java
002 Copyright (C) 2002 Free Software Foundation, Inc.
003
004 This file is part of GNU Classpath.
005
006 GNU Classpath is free software; you can redistribute it and/or modify
007 it under the terms of the GNU General Public License as published by
008 the Free Software Foundation; either version 2, or (at your option)
009 any later version.
010
011 GNU Classpath is distributed in the hope that it will be useful, but
012 WITHOUT ANY WARRANTY; without even the implied warranty of
013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014 General Public License for more details.
015
016 You should have received a copy of the GNU General Public License
017 along with GNU Classpath; see the file COPYING. If not, write to the
018 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
019 02110-1301 USA.
020
021 Linking this library statically or dynamically with other modules is
022 making a combined work based on this library. Thus, the terms and
023 conditions of the GNU General Public License cover the whole
024 combination.
025
026 As a special exception, the copyright holders of this library give you
027 permission to link this library with independent modules to produce an
028 executable, regardless of the license terms of these independent
029 modules, and to copy and distribute the resulting executable under
030 terms of your choice, provided that you also meet, for each linked
031 independent module, the terms and conditions of the license of that
032 module. An independent module is a module which is not derived from
033 or based on this library. If you modify this library, you may extend
034 this exception to your version of the library, but you are not
035 obligated to do so. If you do not wish to do so, delete this
036 exception statement from your version. */
037
038
039 package javax.sql;
040
041 import java.io.InputStream;
042 import java.io.Reader;
043 import java.math.BigDecimal;
044 import java.sql.Array;
045 import java.sql.Blob;
046 import java.sql.Clob;
047 import java.sql.Date;
048 import java.sql.Ref;
049 import java.sql.ResultSet;
050 import java.sql.SQLException;
051 import java.sql.Time;
052 import java.sql.Timestamp;
053 import java.util.Calendar;
054 import java.util.Map;
055
056 /**
057 * @since 1.4
058 */
059 public interface RowSet extends ResultSet
060 {
061 String getUrl() throws SQLException;
062
063 void setUrl(String url) throws SQLException;
064
065 String getDataSourceName();
066
067 void setDataSourceName(String name) throws SQLException;
068
069 String getUsername();
070
071 void setUsername(String name) throws SQLException;
072
073 String getPassword();
074
075 void setPassword(String password) throws SQLException;
076
077 int getTransactionIsolation();
078
079 void setTransactionIsolation(int level) throws SQLException;
080
081 Map<String, Class<?>> getTypeMap() throws SQLException;
082
083 void setTypeMap(Map<String, Class<?>> map) throws SQLException;
084
085 String getCommand();
086
087 void setCommand(String cmd) throws SQLException;
088
089 boolean isReadOnly();
090
091 void setReadOnly(boolean value) throws SQLException;
092
093 int getMaxFieldSize() throws SQLException;
094
095 void setMaxFieldSize(int max) throws SQLException;
096
097 int getMaxRows() throws SQLException;
098
099 void setMaxRows(int max) throws SQLException;
100
101 boolean getEscapeProcessing() throws SQLException;
102
103 void setEscapeProcessing(boolean enable) throws SQLException;
104
105 int getQueryTimeout() throws SQLException;
106
107 void setQueryTimeout(int seconds) throws SQLException;
108
109 void setType(int type) throws SQLException;
110
111 void setConcurrency(int concurrency) throws SQLException;
112
113 void setNull(int parameterIndex, int sqlType) throws SQLException;
114
115 void setNull(int paramIndex, int sqlType, String typeName) throws
116 SQLException;
117
118 void setBoolean(int parameterIndex, boolean x) throws SQLException;
119
120 void setByte(int parameterIndex, byte x) throws SQLException;
121
122 void setShort(int parameterIndex, short x) throws SQLException;
123
124 void setInt(int parameterIndex, int x) throws SQLException;
125
126 void setLong(int parameterIndex, long x) throws SQLException;
127
128 void setFloat(int parameterIndex, float x) throws SQLException;
129
130 void setDouble(int parameterIndex, double x) throws SQLException;
131
132 void setBigDecimal(int parameterIndex, BigDecimal x) throws
133 SQLException;
134
135 void setString(int parameterIndex, String x) throws SQLException;
136
137 void setBytes(int parameterIndex, byte[] x) throws SQLException;
138
139 void setDate(int parameterIndex, Date x) throws SQLException;
140
141 void setTime(int parameterIndex, Time x) throws SQLException;
142
143 void setTimestamp(int parameterIndex, Timestamp x) throws
144 SQLException;
145
146 void setAsciiStream(int parameterIndex, InputStream x, int length)
147 throws SQLException;
148
149 void setBinaryStream(int parameterIndex, InputStream x, int length)
150 throws SQLException;
151
152 void setCharacterStream(int parameterIndex, Reader reader, int
153 length) throws SQLException;
154
155 void setObject(int parameterIndex, Object x, int targetSqlType, int
156 scale) throws SQLException;
157
158 void setObject(int parameterIndex, Object x, int targetSqlType)
159 throws SQLException;
160
161 void setObject(int parameterIndex, Object x) throws SQLException;
162
163 void setRef(int i, Ref x) throws SQLException;
164
165 void setBlob(int i, Blob x) throws SQLException;
166
167 void setClob(int i, Clob x) throws SQLException;
168
169 void setArray(int i, Array x) throws SQLException;
170
171 void setDate(int parameterIndex, Date x, Calendar cal) throws
172 SQLException;
173
174 void setTime(int parameterIndex, Time x, Calendar cal) throws
175 SQLException;
176
177 void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
178 throws SQLException;
179
180 void clearParameters() throws SQLException;
181
182 void execute() throws SQLException;
183
184 void addRowSetListener(RowSetListener listener);
185
186 void removeRowSetListener(RowSetListener listener);
187 }