org.apache.commons.dbcp
public class DelegatingPreparedStatement extends DelegatingStatement implements PreparedStatement
All of the methods from the PreparedStatement interface simply check to see that the PreparedStatement is active, and call the corresponding method on the "delegate" provided in my constructor.
Extends AbandonedTrace to implement Statement tracking and logging of code which created the Statement. Tracking the Statement ensures that the Connection which created it can close any open Statement's on Connection close.
Version: $Revision: 1.22 $ $Date: 2004/03/06 13:35:31 $
Constructor Summary | |
---|---|
DelegatingPreparedStatement(DelegatingConnection c, PreparedStatement s)
Create a wrapper for the Statement which traces this
Statement to the Connection which created it and the
code which created it.
|
Method Summary | |
---|---|
void | addBatch() |
void | clearParameters() |
boolean | equals(Object obj) |
boolean | execute() |
ResultSet | executeQuery() |
int | executeUpdate() |
ResultSetMetaData | getMetaData() |
ParameterMetaData | getParameterMetaData() |
void | setArray(int i, Array x) |
void | setAsciiStream(int parameterIndex, InputStream x, int length) |
void | setBigDecimal(int parameterIndex, BigDecimal x) |
void | setBinaryStream(int parameterIndex, InputStream x, int length) |
void | setBlob(int i, Blob x) |
void | setBoolean(int parameterIndex, boolean x) |
void | setByte(int parameterIndex, byte x) |
void | setBytes(int parameterIndex, byte[] x) |
void | setCharacterStream(int parameterIndex, Reader reader, int length) |
void | setClob(int i, Clob x) |
void | setDate(int parameterIndex, Date x) |
void | setDate(int parameterIndex, Date x, Calendar cal) |
void | setDelegate(PreparedStatement s) Sets my delegate. |
void | setDouble(int parameterIndex, double x) |
void | setFloat(int parameterIndex, float x) |
void | setInt(int parameterIndex, int x) |
void | setLong(int parameterIndex, long x) |
void | setNull(int parameterIndex, int sqlType) |
void | setNull(int paramIndex, int sqlType, String typeName) |
void | setObject(int parameterIndex, Object x, int targetSqlType, int scale) |
void | setObject(int parameterIndex, Object x, int targetSqlType) |
void | setObject(int parameterIndex, Object x) |
void | setRef(int i, Ref x) |
void | setShort(int parameterIndex, short x) |
void | setString(int parameterIndex, String x) |
void | setTime(int parameterIndex, Time x) |
void | setTime(int parameterIndex, Time x, Calendar cal) |
void | setTimestamp(int parameterIndex, Timestamp x) |
void | setTimestamp(int parameterIndex, Timestamp x, Calendar cal) |
void | setUnicodeStream(int parameterIndex, InputStream x, int length) |
void | setURL(int parameterIndex, URL x) |
Parameters: s the PreparedStatement to delegate all calls to. c the DelegatingConnection that created this statement.
Deprecated: