| java.lang.Object org.apache.commons.dbcp.AbandonedTrace org.apache.commons.dbcp.DelegatingStatement org.apache.commons.dbcp.DelegatingPreparedStatement
All known Subclasses: org.apache.commons.dbcp.PoolablePreparedStatement, org.apache.commons.dbcp.DelegatingCallableStatement,
DelegatingPreparedStatement | public class DelegatingPreparedStatement extends DelegatingStatement implements PreparedStatement(Code) | | A base delegating implementation of
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.
author: Rodney Waldhoff author: Glenn L. Nielsen author: James House author: Dirk Verbeeck version: $Revision: 500687 $ $Date: 2007-01-27 16:33:47 -0700 (Sat, 27 Jan 2007) $ |
Method Summary | |
public void | addBatch() | public void | clearParameters() | public boolean | equals(Object obj) | public boolean | execute() | public ResultSet | executeQuery() | public int | executeUpdate() | public ResultSetMetaData | getMetaData() | public java.sql.ParameterMetaData | getParameterMetaData() | public void | setArray(int i, Array x) | public void | setAsciiStream(int parameterIndex, java.io.InputStream x, int length) | public void | setBigDecimal(int parameterIndex, BigDecimal x) | public void | setBinaryStream(int parameterIndex, java.io.InputStream x, int length) | public void | setBlob(int i, Blob x) | public void | setBoolean(int parameterIndex, boolean x) | public void | setByte(int parameterIndex, byte x) | public void | setBytes(int parameterIndex, byte[] x) | public void | setCharacterStream(int parameterIndex, java.io.Reader reader, int length) | public void | setClob(int i, Clob x) | public void | setDate(int parameterIndex, java.sql.Date x) | public void | setDate(int parameterIndex, java.sql.Date x, Calendar cal) | public void | setDelegate(PreparedStatement s) Sets my delegate. | public void | setDouble(int parameterIndex, double x) | public void | setFloat(int parameterIndex, float x) | public void | setInt(int parameterIndex, int x) | public void | setLong(int parameterIndex, long x) | public void | setNull(int parameterIndex, int sqlType) | public void | setNull(int paramIndex, int sqlType, String typeName) | public void | setObject(int parameterIndex, Object x, int targetSqlType, int scale) | public void | setObject(int parameterIndex, Object x, int targetSqlType) | public void | setObject(int parameterIndex, Object x) | public void | setRef(int i, Ref x) | public void | setShort(int parameterIndex, short x) | public void | setString(int parameterIndex, String x) | public void | setTime(int parameterIndex, java.sql.Time x) | public void | setTime(int parameterIndex, java.sql.Time x, Calendar cal) | public void | setTimestamp(int parameterIndex, java.sql.Timestamp x) | public void | setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal) | public void | setURL(int parameterIndex, java.net.URL x) | public void | setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) | public String | toString() Returns a String representation of this object. |
toString | public String toString()(Code) | | Returns a String representation of this object.
String since: 1.2.2 |
|
|