Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » [javadoc | source]
org.apache.commons.dbcp
public class: DelegatingCallableStatement [javadoc | source]
java.lang.Object
   org.apache.commons.dbcp.AbandonedTrace
      org.apache.commons.dbcp.DelegatingStatement
         org.apache.commons.dbcp.DelegatingPreparedStatement
            org.apache.commons.dbcp.DelegatingCallableStatement

All Implemented Interfaces:
    CallableStatement, PreparedStatement, Statement

A base delegating implementation of CallableStatement .

All of the methods from the CallableStatement interface simply 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.

Field Summary
protected  CallableStatement _stmt    My delegate. 
Fields inherited from org.apache.commons.dbcp.DelegatingPreparedStatement:
_stmt
Fields inherited from org.apache.commons.dbcp.DelegatingStatement:
_stmt,  _conn,  _closed
Constructor:
 public DelegatingCallableStatement(DelegatingConnection c,
    CallableStatement s) 
    Create a wrapper for the Statement which traces this Statement to the Connection which created it and the code which created it.
Method from org.apache.commons.dbcp.DelegatingCallableStatement Summary:
equals,   getArray,   getArray,   getBigDecimal,   getBigDecimal,   getBigDecimal,   getBlob,   getBlob,   getBoolean,   getBoolean,   getByte,   getByte,   getBytes,   getBytes,   getClob,   getClob,   getDate,   getDate,   getDate,   getDate,   getDouble,   getDouble,   getFloat,   getFloat,   getInt,   getInt,   getLong,   getLong,   getObject,   getObject,   getObject,   getObject,   getRef,   getRef,   getShort,   getShort,   getString,   getString,   getTime,   getTime,   getTime,   getTime,   getTimestamp,   getTimestamp,   getTimestamp,   getTimestamp,   getURL,   getURL,   registerOutParameter,   registerOutParameter,   registerOutParameter,   registerOutParameter,   registerOutParameter,   registerOutParameter,   setAsciiStream,   setBigDecimal,   setBinaryStream,   setBoolean,   setByte,   setBytes,   setCharacterStream,   setDate,   setDate,   setDelegate,   setDouble,   setFloat,   setInt,   setLong,   setNull,   setNull,   setObject,   setObject,   setObject,   setShort,   setString,   setTime,   setTime,   setTimestamp,   setTimestamp,   setURL,   wasNull
Methods from org.apache.commons.dbcp.DelegatingPreparedStatement:
addBatch,   clearParameters,   equals,   execute,   executeQuery,   executeUpdate,   getMetaData,   getParameterMetaData,   setArray,   setAsciiStream,   setBigDecimal,   setBinaryStream,   setBlob,   setBoolean,   setByte,   setBytes,   setCharacterStream,   setClob,   setDate,   setDate,   setDelegate,   setDouble,   setFloat,   setInt,   setLong,   setNull,   setNull,   setObject,   setObject,   setObject,   setRef,   setShort,   setString,   setTime,   setTime,   setTimestamp,   setTimestamp,   setURL,   setUnicodeStream,   toString
Methods from org.apache.commons.dbcp.DelegatingStatement:
activate,   addBatch,   cancel,   checkOpen,   clearBatch,   clearWarnings,   close,   equals,   execute,   execute,   execute,   execute,   executeBatch,   executeQuery,   executeUpdate,   executeUpdate,   executeUpdate,   executeUpdate,   getConnection,   getDelegate,   getFetchDirection,   getFetchSize,   getGeneratedKeys,   getInnermostDelegate,   getMaxFieldSize,   getMaxRows,   getMoreResults,   getMoreResults,   getQueryTimeout,   getResultSet,   getResultSetConcurrency,   getResultSetHoldability,   getResultSetType,   getUpdateCount,   getWarnings,   handleException,   hashCode,   isClosed,   passivate,   setCursorName,   setDelegate,   setEscapeProcessing,   setFetchDirection,   setFetchSize,   setMaxFieldSize,   setMaxRows,   setQueryTimeout,   toString
Methods from org.apache.commons.dbcp.AbandonedTrace:
addTrace,   clearTrace,   getConfig,   getLastUsed,   getTrace,   printStackTrace,   removeTrace,   setLastUsed,   setLastUsed,   setStackTrace
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.DelegatingCallableStatement Detail:
 public boolean equals(Object obj) 
 public Array getArray(int i) throws SQLException 
 public Array getArray(String parameterName) throws SQLException 
 public BigDecimal getBigDecimal(int parameterIndex) throws SQLException 
 public BigDecimal getBigDecimal(String parameterName) throws SQLException 
 public BigDecimal getBigDecimal(int parameterIndex,
    int scale) throws SQLException 
Deprecated!
 public Blob getBlob(int i) throws SQLException 
 public Blob getBlob(String parameterName) throws SQLException 
 public boolean getBoolean(int parameterIndex) throws SQLException 
 public boolean getBoolean(String parameterName) throws SQLException 
 public byte getByte(int parameterIndex) throws SQLException 
 public byte getByte(String parameterName) throws SQLException 
 public byte[] getBytes(int parameterIndex) throws SQLException 
 public byte[] getBytes(String parameterName) throws SQLException 
 public Clob getClob(int i) throws SQLException 
 public Clob getClob(String parameterName) throws SQLException 
 public Date getDate(int parameterIndex) throws SQLException 
 public Date getDate(String parameterName) throws SQLException 
 public Date getDate(int parameterIndex,
    Calendar cal) throws SQLException 
 public Date getDate(String parameterName,
    Calendar cal) throws SQLException 
 public double getDouble(int parameterIndex) throws SQLException 
 public double getDouble(String parameterName) throws SQLException 
 public float getFloat(int parameterIndex) throws SQLException 
 public float getFloat(String parameterName) throws SQLException 
 public int getInt(int parameterIndex) throws SQLException 
 public int getInt(String parameterName) throws SQLException 
 public long getLong(int parameterIndex) throws SQLException 
 public long getLong(String parameterName) throws SQLException 
 public Object getObject(int parameterIndex) throws SQLException 
 public Object getObject(String parameterName) throws SQLException 
 public Object getObject(int i,
    Map map) throws SQLException 
 public Object getObject(String parameterName,
    Map map) throws SQLException 
 public Ref getRef(int i) throws SQLException 
 public Ref getRef(String parameterName) throws SQLException 
 public short getShort(int parameterIndex) throws SQLException 
 public short getShort(String parameterName) throws SQLException 
 public String getString(int parameterIndex) throws SQLException 
 public String getString(String parameterName) throws SQLException 
 public Time getTime(int parameterIndex) throws SQLException 
 public Time getTime(String parameterName) throws SQLException 
 public Time getTime(int parameterIndex,
    Calendar cal) throws SQLException 
 public Time getTime(String parameterName,
    Calendar cal) throws SQLException 
 public Timestamp getTimestamp(int parameterIndex) throws SQLException 
 public Timestamp getTimestamp(String parameterName) throws SQLException 
 public Timestamp getTimestamp(int parameterIndex,
    Calendar cal) throws SQLException 
 public Timestamp getTimestamp(String parameterName,
    Calendar cal) throws SQLException 
 public URL getURL(int parameterIndex) throws SQLException 
 public URL getURL(String parameterName) throws SQLException 
 public  void registerOutParameter(int parameterIndex,
    int sqlType) throws SQLException 
 public  void registerOutParameter(String parameterName,
    int sqlType) throws SQLException 
 public  void registerOutParameter(int parameterIndex,
    int sqlType,
    int scale) throws SQLException 
 public  void registerOutParameter(int paramIndex,
    int sqlType,
    String typeName) throws SQLException 
 public  void registerOutParameter(String parameterName,
    int sqlType,
    int scale) throws SQLException 
 public  void registerOutParameter(String parameterName,
    int sqlType,
    String typeName) throws SQLException 
 public  void setAsciiStream(String parameterName,
    InputStream x,
    int length) throws SQLException 
 public  void setBigDecimal(String parameterName,
    BigDecimal x) throws SQLException 
 public  void setBinaryStream(String parameterName,
    InputStream x,
    int length) throws SQLException 
 public  void setBoolean(String parameterName,
    boolean x) throws SQLException 
 public  void setByte(String parameterName,
    byte x) throws SQLException 
 public  void setBytes(String parameterName,
    byte[] x) throws SQLException 
 public  void setCharacterStream(String parameterName,
    Reader reader,
    int length) throws SQLException 
 public  void setDate(String parameterName,
    Date x) throws SQLException 
 public  void setDate(String parameterName,
    Date x,
    Calendar cal) throws SQLException 
 public  void setDelegate(CallableStatement s) 
    Sets my delegate.
 public  void setDouble(String parameterName,
    double x) throws SQLException 
 public  void setFloat(String parameterName,
    float x) throws SQLException 
 public  void setInt(String parameterName,
    int x) throws SQLException 
 public  void setLong(String parameterName,
    long x) throws SQLException 
 public  void setNull(String parameterName,
    int sqlType) throws SQLException 
 public  void setNull(String parameterName,
    int sqlType,
    String typeName) throws SQLException 
 public  void setObject(String parameterName,
    Object x) throws SQLException 
 public  void setObject(String parameterName,
    Object x,
    int targetSqlType) throws SQLException 
 public  void setObject(String parameterName,
    Object x,
    int targetSqlType,
    int scale) throws SQLException 
 public  void setShort(String parameterName,
    short x) throws SQLException 
 public  void setString(String parameterName,
    String x) throws SQLException 
 public  void setTime(String parameterName,
    Time x) throws SQLException 
 public  void setTime(String parameterName,
    Time x,
    Calendar cal) throws SQLException 
 public  void setTimestamp(String parameterName,
    Timestamp x) throws SQLException 
 public  void setTimestamp(String parameterName,
    Timestamp x,
    Calendar cal) throws SQLException 
 public  void setURL(String parameterName,
    URL val) throws SQLException 
 public boolean wasNull() throws SQLException