net.sf.infrared.bootstrap.jdbc.p6spy
Class InfraREDP6ResultSet

java.lang.Object
  extended bynet.sf.infrared.bootstrap.jdbc.p6spy.InfraREDP6ResultSet
All Implemented Interfaces:
ResultSet

public class InfraREDP6ResultSet
extends Object
implements ResultSet

Wrapper over ResultSet. Intercepts java.sql.ResultSet methods for monitoring.


Field Summary
protected  com.p6spy.engine.spy.P6Factory factory
           
protected  ResultSet passthru
           
protected  String preparedQuery
           
protected  String query
           
protected  com.p6spy.engine.spy.P6Statement statement
           
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Constructor Summary
InfraREDP6ResultSet(com.p6spy.engine.spy.P6Factory factory, ResultSet resultSet, com.p6spy.engine.spy.P6Statement statement, String preparedQuery, String query)
           
 
Method Summary
 boolean absolute(int p0)
           
 void afterLast()
           
 void beforeFirst()
           
 void cancelRowUpdates()
           
 void clearWarnings()
           
 void close()
           
 void deleteRow()
           
 int findColumn(String p0)
           
 boolean first()
           
 Array getArray(int p0)
           
 Array getArray(String p0)
           
 InputStream getAsciiStream(int p0)
           
 InputStream getAsciiStream(String p0)
           
 BigDecimal getBigDecimal(int p0)
           
 BigDecimal getBigDecimal(int p0, int p1)
           
 BigDecimal getBigDecimal(String p0)
           
 BigDecimal getBigDecimal(String p0, int p1)
           
 InputStream getBinaryStream(int p0)
           
 InputStream getBinaryStream(String p0)
           
 Blob getBlob(int p0)
           
 Blob getBlob(String p0)
           
 boolean getBoolean(int p0)
           
 boolean getBoolean(String p0)
           
 byte getByte(int p0)
           
 byte getByte(String p0)
           
 byte[] getBytes(int p0)
           
 byte[] getBytes(String p0)
           
 Reader getCharacterStream(int p0)
           
 Reader getCharacterStream(String p0)
           
 Clob getClob(int p0)
           
 Clob getClob(String p0)
           
 int getConcurrency()
           
 String getCursorName()
           
 Date getDate(int p0)
           
 Date getDate(int p0, Calendar p1)
           
 Date getDate(String p0)
           
 Date getDate(String p0, Calendar p1)
           
 double getDouble(int p0)
           
 double getDouble(String p0)
           
 int getFetchDirection()
           
 int getFetchSize()
           
 float getFloat(int p0)
           
 float getFloat(String p0)
           
 int getInt(int p0)
           
 int getInt(String p0)
           
 long getLong(int p0)
           
 long getLong(String p0)
           
 ResultSetMetaData getMetaData()
           
 Object getObject(int p0)
           
 Object getObject(int p0, Map p1)
           
 Object getObject(String p0)
           
 Object getObject(String p0, Map p1)
           
 Ref getRef(int p0)
           
 Ref getRef(String p0)
           
 int getRow()
           
 short getShort(int p0)
           
 short getShort(String p0)
           
 Statement getStatement()
           
 String getString(int p0)
           
 String getString(String p0)
           
 Time getTime(int p0)
           
 Time getTime(int p0, Calendar p1)
           
 Time getTime(String p0)
           
 Time getTime(String p0, Calendar p1)
           
 Timestamp getTimestamp(int p0)
           
 Timestamp getTimestamp(int p0, Calendar p1)
           
 Timestamp getTimestamp(String p0)
           
 Timestamp getTimestamp(String p0, Calendar p1)
           
 int getType()
           
 InputStream getUnicodeStream(int p0)
           
 InputStream getUnicodeStream(String p0)
           
 URL getURL(int p0)
           
 URL getURL(String p0)
           
 SQLWarning getWarnings()
           
 void insertRow()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
           
 void moveToCurrentRow()
           
 void moveToInsertRow()
           
 boolean next()
           
 boolean previous()
           
 void refreshRow()
           
 boolean relative(int p0)
           
 boolean rowDeleted()
           
 boolean rowInserted()
           
 boolean rowUpdated()
           
 void setFetchDirection(int p0)
           
 void setFetchSize(int p0)
           
 void updateArray(int p0, Array p1)
           
 void updateArray(String p0, Array p1)
           
 void updateAsciiStream(int p0, InputStream p1, int p2)
           
 void updateAsciiStream(String p0, InputStream p1, int p2)
           
 void updateBigDecimal(int p0, BigDecimal p1)
           
 void updateBigDecimal(String p0, BigDecimal p1)
           
 void updateBinaryStream(int p0, InputStream p1, int p2)
           
 void updateBinaryStream(String p0, InputStream p1, int p2)
           
 void updateBlob(int p0, Blob p1)
           
 void updateBlob(String p0, Blob p1)
           
 void updateBoolean(int p0, boolean p1)
           
 void updateBoolean(String p0, boolean p1)
           
 void updateByte(int p0, byte p1)
           
 void updateByte(String p0, byte p1)
           
 void updateBytes(int p0, byte[] p1)
           
 void updateBytes(String p0, byte[] p1)
           
 void updateCharacterStream(int p0, Reader p1, int p2)
           
 void updateCharacterStream(String p0, Reader p1, int p2)
           
 void updateClob(int p0, Clob p1)
           
 void updateClob(String p0, Clob p1)
           
 void updateDate(int p0, Date p1)
           
 void updateDate(String p0, Date p1)
           
 void updateDouble(int p0, double p1)
           
 void updateDouble(String p0, double p1)
           
 void updateFloat(int p0, float p1)
           
 void updateFloat(String p0, float p1)
           
 void updateInt(int p0, int p1)
           
 void updateInt(String p0, int p1)
           
 void updateLong(int p0, long p1)
           
 void updateLong(String p0, long p1)
           
 void updateNull(int p0)
           
 void updateNull(String p0)
           
 void updateObject(int p0, Object p1)
           
 void updateObject(int p0, Object p1, int p2)
           
 void updateObject(String p0, Object p1)
           
 void updateObject(String p0, Object p1, int p2)
           
 void updateRef(int p0, Ref p1)
           
 void updateRef(String p0, Ref p1)
           
 void updateRow()
           
 void updateShort(int p0, short p1)
           
 void updateShort(String p0, short p1)
           
 void updateString(int p0, String p1)
           
 void updateString(String p0, String p1)
           
 void updateTime(int p0, Time p1)
           
 void updateTime(String p0, Time p1)
           
 void updateTimestamp(int p0, Timestamp p1)
           
 void updateTimestamp(String p0, Timestamp p1)
           
 boolean wasNull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passthru

protected ResultSet passthru

statement

protected com.p6spy.engine.spy.P6Statement statement

query

protected String query

preparedQuery

protected String preparedQuery

factory

protected com.p6spy.engine.spy.P6Factory factory
Constructor Detail

InfraREDP6ResultSet

public InfraREDP6ResultSet(com.p6spy.engine.spy.P6Factory factory,
                           ResultSet resultSet,
                           com.p6spy.engine.spy.P6Statement statement,
                           String preparedQuery,
                           String query)
Method Detail

next

public boolean next()
             throws SQLException
Specified by:
next in interface ResultSet
Throws:
SQLException

getRow

public int getRow()
           throws SQLException
Specified by:
getRow in interface ResultSet
Throws:
SQLException

getBytes

public byte[] getBytes(String p0)
                throws SQLException
Specified by:
getBytes in interface ResultSet
Throws:
SQLException

getBytes

public byte[] getBytes(int p0)
                throws SQLException
Specified by:
getBytes in interface ResultSet
Throws:
SQLException

getBoolean

public boolean getBoolean(int p0)
                   throws SQLException
Specified by:
getBoolean in interface ResultSet
Throws:
SQLException

getBoolean

public boolean getBoolean(String p0)
                   throws SQLException
Specified by:
getBoolean in interface ResultSet
Throws:
SQLException

getType

public int getType()
            throws SQLException
Specified by:
getType in interface ResultSet
Throws:
SQLException

getLong

public long getLong(int p0)
             throws SQLException
Specified by:
getLong in interface ResultSet
Throws:
SQLException

getLong

public long getLong(String p0)
             throws SQLException
Specified by:
getLong in interface ResultSet
Throws:
SQLException

previous

public boolean previous()
                 throws SQLException
Specified by:
previous in interface ResultSet
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface ResultSet
Throws:
SQLException

getObject

public Object getObject(String p0,
                        Map p1)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

getObject

public Object getObject(int p0)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

getObject

public Object getObject(String p0)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

getObject

public Object getObject(int p0,
                        Map p1)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

getRef

public Ref getRef(String p0)
           throws SQLException
Specified by:
getRef in interface ResultSet
Throws:
SQLException

getRef

public Ref getRef(int p0)
           throws SQLException
Specified by:
getRef in interface ResultSet
Throws:
SQLException

getTime

public Time getTime(int p0,
                    Calendar p1)
             throws SQLException
Specified by:
getTime in interface ResultSet
Throws:
SQLException

getTime

public Time getTime(String p0,
                    Calendar p1)
             throws SQLException
Specified by:
getTime in interface ResultSet
Throws:
SQLException

getTime

public Time getTime(String p0)
             throws SQLException
Specified by:
getTime in interface ResultSet
Throws:
SQLException

getTime

public Time getTime(int p0)
             throws SQLException
Specified by:
getTime in interface ResultSet
Throws:
SQLException

getDate

public Date getDate(int p0)
             throws SQLException
Specified by:
getDate in interface ResultSet
Throws:
SQLException

getDate

public Date getDate(String p0,
                    Calendar p1)
             throws SQLException
Specified by:
getDate in interface ResultSet
Throws:
SQLException

getDate

public Date getDate(String p0)
             throws SQLException
Specified by:
getDate in interface ResultSet
Throws:
SQLException

getDate

public Date getDate(int p0,
                    Calendar p1)
             throws SQLException
Specified by:
getDate in interface ResultSet
Throws:
SQLException

wasNull

public boolean wasNull()
                throws SQLException
Specified by:
wasNull in interface ResultSet
Throws:
SQLException

getString

public String getString(String p0)
                 throws SQLException
Specified by:
getString in interface ResultSet
Throws:
SQLException

getString

public String getString(int p0)
                 throws SQLException
Specified by:
getString in interface ResultSet
Throws:
SQLException

getByte

public byte getByte(String p0)
             throws SQLException
Specified by:
getByte in interface ResultSet
Throws:
SQLException

getByte

public byte getByte(int p0)
             throws SQLException
Specified by:
getByte in interface ResultSet
Throws:
SQLException

getShort

public short getShort(String p0)
               throws SQLException
Specified by:
getShort in interface ResultSet
Throws:
SQLException

getShort

public short getShort(int p0)
               throws SQLException
Specified by:
getShort in interface ResultSet
Throws:
SQLException

getInt

public int getInt(int p0)
           throws SQLException
Specified by:
getInt in interface ResultSet
Throws:
SQLException

getInt

public int getInt(String p0)
           throws SQLException
Specified by:
getInt in interface ResultSet
Throws:
SQLException

getFloat

public float getFloat(String p0)
               throws SQLException
Specified by:
getFloat in interface ResultSet
Throws:
SQLException

getFloat

public float getFloat(int p0)
               throws SQLException
Specified by:
getFloat in interface ResultSet
Throws:
SQLException

getDouble

public double getDouble(int p0)
                 throws SQLException
Specified by:
getDouble in interface ResultSet
Throws:
SQLException

getDouble

public double getDouble(String p0)
                 throws SQLException
Specified by:
getDouble in interface ResultSet
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(String p0)
                         throws SQLException
Specified by:
getBigDecimal in interface ResultSet
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(int p0)
                         throws SQLException
Specified by:
getBigDecimal in interface ResultSet
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(int p0,
                                int p1)
                         throws SQLException
Specified by:
getBigDecimal in interface ResultSet
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(String p0,
                                int p1)
                         throws SQLException
Specified by:
getBigDecimal in interface ResultSet
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(String p0)
                       throws SQLException
Specified by:
getTimestamp in interface ResultSet
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(String p0,
                              Calendar p1)
                       throws SQLException
Specified by:
getTimestamp in interface ResultSet
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(int p0)
                       throws SQLException
Specified by:
getTimestamp in interface ResultSet
Throws:
SQLException