java/jdbc-loopback-driver/src/info/globalcode/jdbc/loopback/AbstractPreparedStatement.java
JDBC driver class can be specified in the database configuration as an optional parameter (useful especially while embedding jdbc-dk-driver into other application that does not support automatic driver discovery)
3 * Copyright © 2014 František Kučera (frantovo.cz)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package info.globalcode.jdbc.loopback;
20 import java.io.InputStream;
21 import java.io.Reader;
22 import java.math.BigDecimal;
24 import java.sql.Array;
28 import java.sql.NClob;
29 import java.sql.ParameterMetaData;
31 import java.sql.ResultSet;
32 import java.sql.ResultSetMetaData;
33 import java.sql.RowId;
34 import java.sql.SQLException;
35 import java.sql.SQLXML;
37 import java.sql.Timestamp;
38 import java.util.Calendar;
42 * @author Ing. František Kučera (frantovo.cz)
44 public abstract class AbstractPreparedStatement extends AbstractStatement implements java.sql.PreparedStatement {
47 public ResultSet executeQuery() throws SQLException {
48 throw new SQLException("Not supported yet.");
52 public int executeUpdate() throws SQLException {
53 throw new SQLException("Not supported yet.");
57 public void setNull(int parameterIndex, int sqlType) throws SQLException {
58 throw new SQLException("Not supported yet.");
62 public void setBoolean(int parameterIndex, boolean x) throws SQLException {
63 throw new SQLException("Not supported yet.");
67 public void setByte(int parameterIndex, byte x) throws SQLException {
68 throw new SQLException("Not supported yet.");
72 public void setShort(int parameterIndex, short x) throws SQLException {
73 throw new SQLException("Not supported yet.");
77 public void setInt(int parameterIndex, int x) throws SQLException {
78 throw new SQLException("Not supported yet.");
82 public void setLong(int parameterIndex, long x) throws SQLException {
83 throw new SQLException("Not supported yet.");
87 public void setFloat(int parameterIndex, float x) throws SQLException {
88 throw new SQLException("Not supported yet.");
92 public void setDouble(int parameterIndex, double x) throws SQLException {
93 throw new SQLException("Not supported yet.");
97 public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException {
98 throw new SQLException("Not supported yet.");
102 public void setString(int parameterIndex, String x) throws SQLException {
103 throw new SQLException("Not supported yet.");
107 public void setBytes(int parameterIndex, byte[] x) throws SQLException {
108 throw new SQLException("Not supported yet.");
112 public void setDate(int parameterIndex, Date x) throws SQLException {
113 throw new SQLException("Not supported yet.");
117 public void setTime(int parameterIndex, Time x) throws SQLException {
118 throw new SQLException("Not supported yet.");
122 public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException {
123 throw new SQLException("Not supported yet.");
127 public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException {
128 throw new SQLException("Not supported yet.");
133 public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
134 throw new SQLException("Not supported yet.");
138 public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {
139 throw new SQLException("Not supported yet.");
143 public void clearParameters() throws SQLException {
144 throw new SQLException("Not supported yet.");
148 public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {
149 throw new SQLException("Not supported yet.");
153 public void setObject(int parameterIndex, Object x) throws SQLException {
154 throw new SQLException("Not supported yet.");
158 public boolean execute() throws SQLException {
159 throw new SQLException("Not supported yet.");
163 public void addBatch() throws SQLException {
164 throw new SQLException("Not supported yet.");
168 public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {
169 throw new SQLException("Not supported yet.");
173 public void setRef(int parameterIndex, Ref x) throws SQLException {
174 throw new SQLException("Not supported yet.");
178 public void setBlob(int parameterIndex, Blob x) throws SQLException {
179 throw new SQLException("Not supported yet.");
183 public void setClob(int parameterIndex, Clob x) throws SQLException {
184 throw new SQLException("Not supported yet.");
188 public void setArray(int parameterIndex, Array x) throws SQLException {
189 throw new SQLException("Not supported yet.");
193 public ResultSetMetaData getMetaData() throws SQLException {
194 throw new SQLException("Not supported yet.");
198 public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {
199 throw new SQLException("Not supported yet.");
203 public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {
204 throw new SQLException("Not supported yet.");
208 public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException {
209 throw new SQLException("Not supported yet.");
213 public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {
214 throw new SQLException("Not supported yet.");
218 public void setURL(int parameterIndex, URL x) throws SQLException {
219 throw new SQLException("Not supported yet.");
223 public ParameterMetaData getParameterMetaData() throws SQLException {
224 throw new SQLException("Not supported yet.");
228 public void setRowId(int parameterIndex, RowId x) throws SQLException {
229 throw new SQLException("Not supported yet.");
233 public void setNString(int parameterIndex, String value) throws SQLException {
234 throw new SQLException("Not supported yet.");
238 public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {
239 throw new SQLException("Not supported yet.");
243 public void setNClob(int parameterIndex, NClob value) throws SQLException {
244 throw new SQLException("Not supported yet.");
248 public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
249 throw new SQLException("Not supported yet.");
253 public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {
254 throw new SQLException("Not supported yet.");
258 public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
259 throw new SQLException("Not supported yet.");
263 public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
264 throw new SQLException("Not supported yet.");
268 public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException {
269 throw new SQLException("Not supported yet.");
273 public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {
274 throw new SQLException("Not supported yet.");
278 public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {
279 throw new SQLException("Not supported yet.");
283 public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {
284 throw new SQLException("Not supported yet.");
288 public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
289 throw new SQLException("Not supported yet.");
293 public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {
294 throw new SQLException("Not supported yet.");
298 public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
299 throw new SQLException("Not supported yet.");
303 public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
304 throw new SQLException("Not supported yet.");
308 public void setClob(int parameterIndex, Reader reader) throws SQLException {
309 throw new SQLException("Not supported yet.");
313 public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
314 throw new SQLException("Not supported yet.");
318 public void setNClob(int parameterIndex, Reader reader) throws SQLException {
319 throw new SQLException("Not supported yet.");