1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418
|
/*
* Distributed as part of c3p0 v.0.9.1.2
*
* Copyright (C) 2005 Machinery For Change, Inc.
*
* Author: Steve Waldman <swaldman@mchange.com>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1, as
* published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software; see the file LICENSE. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package com.mchange.v2.sql.filter;
import java.io.InputStream;
import java.io.Reader;
import java.lang.Object;
import java.lang.String;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql.PreparedStatement;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;
public abstract class FilterPreparedStatement implements PreparedStatement
{
protected PreparedStatement inner;
public FilterPreparedStatement(PreparedStatement inner)
{ this.inner = inner; }
public FilterPreparedStatement()
{}
public void setInner( PreparedStatement inner )
{ this.inner = inner; }
public PreparedStatement getInner()
{ return inner; }
public ResultSetMetaData getMetaData() throws SQLException
{ return inner.getMetaData(); }
public ResultSet executeQuery() throws SQLException
{ return inner.executeQuery(); }
public int executeUpdate() throws SQLException
{ return inner.executeUpdate(); }
public void addBatch() throws SQLException
{ inner.addBatch(); }
public void setNull(int a, int b, String c) throws SQLException
{ inner.setNull(a, b, c); }
public void setNull(int a, int b) throws SQLException
{ inner.setNull(a, b); }
public void setBigDecimal(int a, BigDecimal b) throws SQLException
{ inner.setBigDecimal(a, b); }
public void setBytes(int a, byte[] b) throws SQLException
{ inner.setBytes(a, b); }
public void setTimestamp(int a, Timestamp b, Calendar c) throws SQLException
{ inner.setTimestamp(a, b, c); }
public void setTimestamp(int a, Timestamp b) throws SQLException
{ inner.setTimestamp(a, b); }
public void setAsciiStream(int a, InputStream b, int c) throws SQLException
{ inner.setAsciiStream(a, b, c); }
public void setUnicodeStream(int a, InputStream b, int c) throws SQLException
{ inner.setUnicodeStream(a, b, c); }
public void setBinaryStream(int a, InputStream b, int c) throws SQLException
{ inner.setBinaryStream(a, b, c); }
public void clearParameters() throws SQLException
{ inner.clearParameters(); }
public void setObject(int a, Object b) throws SQLException
{ inner.setObject(a, b); }
public void setObject(int a, Object b, int c, int d) throws SQLException
{ inner.setObject(a, b, c, d); }
public void setObject(int a, Object b, int c) throws SQLException
{ inner.setObject(a, b, c); }
public void setCharacterStream(int a, Reader b, int c) throws SQLException
{ inner.setCharacterStream(a, b, c); }
public void setRef(int a, Ref b) throws SQLException
{ inner.setRef(a, b); }
public void setBlob(int a, Blob b) throws SQLException
{ inner.setBlob(a, b); }
public void setClob(int a, Clob b) throws SQLException
{ inner.setClob(a, b); }
public void setArray(int a, Array b) throws SQLException
{ inner.setArray(a, b); }
public ParameterMetaData getParameterMetaData() throws SQLException
{ return inner.getParameterMetaData(); }
public void setBoolean(int a, boolean b) throws SQLException
{ inner.setBoolean(a, b); }
public void setByte(int a, byte b) throws SQLException
{ inner.setByte(a, b); }
public void setShort(int a, short b) throws SQLException
{ inner.setShort(a, b); }
public void setInt(int a, int b) throws SQLException
{ inner.setInt(a, b); }
public void setLong(int a, long b) throws SQLException
{ inner.setLong(a, b); }
public void setFloat(int a, float b) throws SQLException
{ inner.setFloat(a, b); }
public void setDouble(int a, double b) throws SQLException
{ inner.setDouble(a, b); }
public void setURL(int a, URL b) throws SQLException
{ inner.setURL(a, b); }
public void setTime(int a, Time b) throws SQLException
{ inner.setTime(a, b); }
public void setTime(int a, Time b, Calendar c) throws SQLException
{ inner.setTime(a, b, c); }
public boolean execute() throws SQLException
{ return inner.execute(); }
public void setString(int a, String b) throws SQLException
{ inner.setString(a, b); }
public void setDate(int a, Date b, Calendar c) throws SQLException
{ inner.setDate(a, b, c); }
public void setDate(int a, Date b) throws SQLException
{ inner.setDate(a, b); }
public SQLWarning getWarnings() throws SQLException
{ return inner.getWarnings(); }
public void clearWarnings() throws SQLException
{ inner.clearWarnings(); }
public void setFetchDirection(int a) throws SQLException
{ inner.setFetchDirection(a); }
public int getFetchDirection() throws SQLException
{ return inner.getFetchDirection(); }
public void setFetchSize(int a) throws SQLException
{ inner.setFetchSize(a); }
public int getFetchSize() throws SQLException
{ return inner.getFetchSize(); }
public int getResultSetHoldability() throws SQLException
{ return inner.getResultSetHoldability(); }
public ResultSet executeQuery(String a) throws SQLException
{ return inner.executeQuery(a); }
public int executeUpdate(String a, int b) throws SQLException
{ return inner.executeUpdate(a, b); }
public int executeUpdate(String a, String[] b) throws SQLException
{ return inner.executeUpdate(a, b); }
public int executeUpdate(String a, int[] b) throws SQLException
{ return inner.executeUpdate(a, b); }
public int executeUpdate(String a) throws SQLException
{ return inner.executeUpdate(a); }
public int getMaxFieldSize() throws SQLException
{ return inner.getMaxFieldSize(); }
public void setMaxFieldSize(int a) throws SQLException
{ inner.setMaxFieldSize(a); }
public int getMaxRows() throws SQLException
{ return inner.getMaxRows(); }
public void setMaxRows(int a) throws SQLException
{ inner.setMaxRows(a); }
public void setEscapeProcessing(boolean a) throws SQLException
{ inner.setEscapeProcessing(a); }
public int getQueryTimeout() throws SQLException
{ return inner.getQueryTimeout(); }
public void setQueryTimeout(int a) throws SQLException
{ inner.setQueryTimeout(a); }
public void setCursorName(String a) throws SQLException
{ inner.setCursorName(a); }
public ResultSet getResultSet() throws SQLException
{ return inner.getResultSet(); }
public int getUpdateCount() throws SQLException
{ return inner.getUpdateCount(); }
public boolean getMoreResults() throws SQLException
{ return inner.getMoreResults(); }
public boolean getMoreResults(int a) throws SQLException
{ return inner.getMoreResults(a); }
public int getResultSetConcurrency() throws SQLException
{ return inner.getResultSetConcurrency(); }
public int getResultSetType() throws SQLException
{ return inner.getResultSetType(); }
public void addBatch(String a) throws SQLException
{ inner.addBatch(a); }
public void clearBatch() throws SQLException
{ inner.clearBatch(); }
public int[] executeBatch() throws SQLException
{ return inner.executeBatch(); }
public ResultSet getGeneratedKeys() throws SQLException
{ return inner.getGeneratedKeys(); }
public void close() throws SQLException
{ inner.close(); }
public boolean execute(String a, int b) throws SQLException
{ return inner.execute(a, b); }
public boolean execute(String a) throws SQLException
{ return inner.execute(a); }
public boolean execute(String a, int[] b) throws SQLException
{ return inner.execute(a, b); }
public boolean execute(String a, String[] b) throws SQLException
{ return inner.execute(a, b); }
public Connection getConnection() throws SQLException
{ return inner.getConnection(); }
public void cancel() throws SQLException
{ inner.cancel(); }
// JDBC 4.0
public boolean isClosed() throws SQLException {
return inner.isClosed();
}
public boolean isPoolable() throws SQLException {
return inner.isPoolable();
}
public void setPoolable(boolean poolable) throws SQLException {
inner.setPoolable(poolable);
}
public boolean isWrapperFor(Class c) throws SQLException {
return c.isInstance(this);
}
public Object unwrap(Class c) throws SQLException {
if (c.isInstance(this)) {
return this;
}
// should people be calling unwrap when isWrapperFor would return false
return null;
}
public void setAsciiStream(int parameterIndex, InputStream x)
throws SQLException {
inner.setAsciiStream(parameterIndex, x);
}
public void setAsciiStream(int parameterIndex, InputStream x,
long length) throws SQLException {
inner.setAsciiStream(parameterIndex, x, length);
}
public void setBinaryStream(int parameterIndex, InputStream x)
throws SQLException {
inner.setBinaryStream(parameterIndex, x);
}
public void setBinaryStream(int parameterIndex, InputStream x,
long length) throws SQLException {
inner.setBinaryStream(parameterIndex, x, length);
}
public void setBlob(int parameterIndex, InputStream inputStream)
throws SQLException {
inner.setBlob(parameterIndex, inputStream);
}
public void setBlob(int parameterIndex, InputStream inputStream,
long length) throws SQLException {
inner.setBlob(parameterIndex, inputStream, length);
}
public void setCharacterStream(int parameterIndex, Reader reader)
throws SQLException {
inner.setCharacterStream(parameterIndex, reader);
}
public void setCharacterStream(int parameterIndex, Reader reader,
long length) throws SQLException {
inner.setCharacterStream(parameterIndex, reader, length);
}
public void setClob(int parameterIndex, Reader reader)
throws SQLException {
inner.setClob(parameterIndex, reader);
}
public void setClob(int parameterIndex, Reader reader, long length)
throws SQLException {
inner.setClob(parameterIndex, reader, length);
}
public void setNCharacterStream(int parameterIndex, Reader value)
throws SQLException {
inner.setNCharacterStream(parameterIndex, value);
}
public void setNCharacterStream(int parameterIndex, Reader value,
long length) throws SQLException {
inner.setNCharacterStream(parameterIndex, value, length);
}
public void setNClob(int parameterIndex, NClob value)
throws SQLException {
inner.setNClob(parameterIndex, value);
}
public void setNClob(int parameterIndex, Reader reader)
throws SQLException {
inner.setNClob(parameterIndex, reader);
}
public void setNClob(int parameterIndex, Reader reader, long length)
throws SQLException {
inner.setNClob(parameterIndex, reader, length);
}
public void setNString(int parameterIndex, String value)
throws SQLException {
inner.setNString(parameterIndex, value);
}
public void setRowId(int parameterIndex, RowId x)
throws SQLException {
inner.setRowId(parameterIndex, x);
}
public void setSQLXML(int parameterIndex, SQLXML xmlObject)
throws SQLException {
inner.setSQLXML(parameterIndex, xmlObject);
}
// JDBC 4.1
public void closeOnCompletion() throws SQLException {
//inner.closeOnCompletion();
throw new java.sql.SQLFeatureNotSupportedException();
}
public boolean isCloseOnCompletion() throws SQLException {
//return inner.isCloseOnCompletion();
throw new java.sql.SQLFeatureNotSupportedException();
}
}
|