com.p6spy.engine.spy

Class P6ResultSet

Implemented Interfaces:
ResultSet
Known Direct Subclasses:
P6LogResultSet

public class P6ResultSet
extends P6Base
implements ResultSet

Description: JDBC Driver Extension implementing PreparedStatement. $Author: aarvesen $ $Revision: 1.6 $ $Date: 2003/06/20 20:09:07 $ $Id: P6ResultSet.java,v 1.6 2003/06/20 20:09:07 aarvesen Exp $ $Source: /cvsroot/p6spy/p6spy/com/p6spy/engine/spy/P6ResultSet.java,v $ $Log: P6ResultSet.java,v $ Revision 1.6 2003/06/20 20:09:07 aarvesen put in a fix suggested by noack from neofonie.de (Andre Noack) to deal with result sets throwing an out of bounds exception Revision 1.5 2003/06/03 19:20:25 cheechq removed unused imports Revision 1.4 2003/01/03 20:33:43 aarvesen Added getJDBC() method to return the underlying jdbc object. Revision 1.3 2002/12/06 22:43:44 aarvesen Extend P6Base. New factory registration in the constructor. jdk 1.4 Revision 1.2 2002/10/06 18:23:25 jeffgoke no message Revision 1.1 2002/05/24 07:31:13 jeffgoke version 1 rewrite Revision 1.3 2002/05/16 04:58:40 jeffgoke Viktor Szathmary added multi-driver support. Rewrote P6SpyOptions to be easier to manage. Fixed several bugs. Revision 1.2 2002/04/15 05:13:32 jeffgoke Simon Sadedin added timing support. Fixed bug where batch execute was not getting logged. Added result set timing. Updated the log format to include categories, and updated options to control the categories. Updated documentation. Revision 1.1 2002/04/10 04:24:26 jeffgoke added support for callable statements and fixed numerous bugs that allowed the real class to be returned

Field Summary

protected ResultSet
passthru
protected String
preparedQuery
protected String
query
protected P6Statement
statement

Fields inherited from class com.p6spy.engine.spy.P6Base

factory

Constructor Summary

P6ResultSet(P6Factory factory, ResultSet resultSet, 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(String p0)
Array
getArray(int p0)
InputStream
getAsciiStream(String p0)
InputStream
getAsciiStream(int p0)
BigDecimal
getBigDecimal(String p0)
BigDecimal
getBigDecimal(String p0, int p1)
BigDecimal
getBigDecimal(int p0)
BigDecimal
getBigDecimal(int p0, int p1)
InputStream
getBinaryStream(String p0)
InputStream
getBinaryStream(int p0)
Blob
getBlob(String p0)
Blob
getBlob(int p0)
boolean
getBoolean(String p0)
boolean
getBoolean(int p0)
byte
getByte(String p0)
byte
getByte(int p0)
byte[]
getBytes(String p0)
byte[]
getBytes(int p0)
Reader
getCharacterStream(String p0)
Reader
getCharacterStream(int p0)
Clob
getClob(String p0)
Clob
getClob(int p0)
int
getConcurrency()
String
getCursorName()
Date
getDate(String p0)
Date
getDate(String p0, Calendar p1)
Date
getDate(int p0)
Date
getDate(int p0, Calendar p1)
double
getDouble(String p0)
double
getDouble(int p0)
int
getFetchDirection()
int
getFetchSize()
float
getFloat(String p0)
float
getFloat(int p0)
int
getInt(String p0)
int
getInt(int p0)
ResultSet
getJDBC()
Returns the underlying JDBC object (in this case, a java.sql.ResultSet)
long
getLong(String p0)
long
getLong(int p0)
ResultSetMetaData
getMetaData()
Object
getObject(String p0)
Object
getObject(String p0, Map p1)
Object
getObject(int p0)
Object
getObject(int p0, Map p1)
Ref
getRef(String p0)
Ref
getRef(int p0)
int
getRow()
short
getShort(String p0)
short
getShort(int p0)
Statement
getStatement()
String
getString(String p0)
String
getString(int p0)
Time
getTime(String p0)
Time
getTime(String p0, Calendar p1)
Time
getTime(int p0)
Time
getTime(int p0, Calendar p1)
Timestamp
getTimestamp(String p0)
Timestamp
getTimestamp(String p0, Calendar p1)
Timestamp
getTimestamp(int p0)
Timestamp
getTimestamp(int p0, Calendar p1)
int
getType()
URL
getURL(String p0)
URL
getURL(int p0)
InputStream
getUnicodeStream(String p0)
InputStream
getUnicodeStream(int p0)
SQLWarning
getWarnings()
void
insertRow()
boolean
isAfterLast()
boolean
isBeforeFirst()
boolean
isFirst()
boolean
isLast()
boolean
last()
void
moveToCurrentRow()
void
moveToInsertRow()
boolean
next()
This gets overloaded in the P6LogResultSet, but may need to do what that class does
boolean
previous()
void
refreshRow()
boolean
relative(int p0)
boolean
rowDeleted()
boolean
rowInserted()
boolean
rowUpdated()
void
setFetchDirection(int p0)
void
setFetchSize(int p0)
void
updateArray(String p0, Array p1)
void
updateArray(int p0, Array p1)
void
updateAsciiStream(String p0, InputStream p1, int p2)
void
updateAsciiStream(int p0, InputStream p1, int p2)
void
updateBigDecimal(String p0, BigDecimal p1)
void
updateBigDecimal(int p0, BigDecimal p1)
void
updateBinaryStream(String p0, InputStream p1, int p2)
void
updateBinaryStream(int p0, InputStream p1, int p2)
void
updateBlob(String p0, Blob p1)
void
updateBlob(int p0, Blob p1)
void
updateBoolean(String p0, boolean p1)
void
updateBoolean(int p0, boolean p1)
void
updateByte(String p0, byte p1)
void
updateByte(int p0, byte p1)
void
updateBytes(String p0, byte[] p1)
void
updateBytes(int p0, byte[] p1)
void
updateCharacterStream(String p0, Reader p1, int p2)
void
updateCharacterStream(int p0, Reader p1, int p2)
void
updateClob(String p0, Clob p1)
void
updateClob(int p0, Clob p1)
void
updateDate(String p0, Date p1)
void
updateDate(int p0, Date p1)
void
updateDouble(String p0, double p1)
void
updateDouble(int p0, double p1)
void
updateFloat(String p0, float p1)
void
updateFloat(int p0, float p1)
void
updateInt(String p0, int p1)
void
updateInt(int p0, int p1)
void
updateLong(String p0, long p1)
void
updateLong(int p0, long p1)
void
updateNull(String p0)
void
updateNull(int p0)
void
updateObject(String p0, Object p1)
void
updateObject(String p0, Object p1, int p2)
void
updateObject(int p0, Object p1)
void
updateObject(int p0, Object p1, int p2)
void
updateRef(String p0, Ref p1)
void
updateRef(int p0, Ref p1)
void
updateRow()
void
updateShort(String p0, short p1)
void
updateShort(int p0, short p1)
void
updateString(String p0, String p1)
void
updateString(int p0, String p1)
void
updateTime(String p0, Time p1)
void
updateTime(int p0, Time p1)
void
updateTimestamp(String p0, Timestamp p1)
void
updateTimestamp(int p0, Timestamp p1)
boolean
wasNull()

Methods inherited from class com.p6spy.engine.spy.P6Base

getP6Factory, setP6Factory

Field Details

passthru

protected ResultSet passthru


preparedQuery

protected String preparedQuery


query

protected String query


statement

protected P6Statement statement

Constructor Details

P6ResultSet

public P6ResultSet(P6Factory factory,
                   ResultSet resultSet,
                   P6Statement statement,
                   String preparedQuery,
                   String query)

Method Details

absolute

public boolean absolute(int p0)
            throws SQLException


afterLast

public void afterLast()
            throws SQLException


beforeFirst

public void beforeFirst()
            throws SQLException


cancelRowUpdates

public void cancelRowUpdates()
            throws SQLException


clearWarnings

public void clearWarnings()
            throws SQLException


close

public void close()
            throws SQLException


deleteRow

public void deleteRow()
            throws SQLException


findColumn

public int findColumn(String p0)
            throws SQLException


first

public boolean first()
            throws SQLException


getArray

public Array getArray(String p0)
            throws SQLException


getArray

public Array getArray(int p0)
            throws SQLException


getAsciiStream

public InputStream getAsciiStream(String p0)
            throws SQLException


getAsciiStream

public InputStream getAsciiStream(int p0)
            throws SQLException


getBigDecimal

public BigDecimal getBigDecimal(String p0)
            throws SQLException


getBigDecimal

public BigDecimal getBigDecimal(String p0,
                                int p1)
            throws SQLException


getBigDecimal

public BigDecimal getBigDecimal(int p0)
            throws SQLException


getBigDecimal

public BigDecimal getBigDecimal(int p0,
                                int p1)
            throws SQLException


getBinaryStream

public InputStream getBinaryStream(String p0)
            throws SQLException


getBinaryStream

public InputStream getBinaryStream(int p0)
            throws SQLException


getBlob

public Blob getBlob(String p0)
            throws SQLException


getBlob

public Blob getBlob(int p0)
            throws SQLException


getBoolean

public boolean getBoolean(String p0)
            throws SQLException


getBoolean

public boolean getBoolean(int p0)
            throws SQLException


getByte

public byte getByte(String p0)
            throws SQLException


getByte

public byte getByte(int p0)
            throws SQLException


getBytes

public byte[] getBytes(String p0)
            throws SQLException


getBytes

public byte[] getBytes(int p0)
            throws SQLException


getCharacterStream

public Reader getCharacterStream(String p0)
            throws SQLException


getCharacterStream

public Reader getCharacterStream(int p0)
            throws SQLException


getClob

public Clob getClob(String p0)
            throws SQLException


getClob

public Clob getClob(int p0)
            throws SQLException


getConcurrency

public int getConcurrency()
            throws SQLException


getCursorName

public String getCursorName()
            throws SQLException


getDate

public Date getDate(String p0)
            throws SQLException


getDate

public Date getDate(String p0,
                             Calendar p1)
            throws SQLException


getDate

public Date getDate(int p0)
            throws SQLException


getDate

public Date getDate(int p0,
                             Calendar p1)
            throws SQLException


getDouble

public double getDouble(String p0)
            throws SQLException


getDouble

public double getDouble(int p0)
            throws SQLException


getFetchDirection

public int getFetchDirection()
            throws SQLException


getFetchSize

public int getFetchSize()
            throws SQLException


getFloat

public float getFloat(String p0)
            throws SQLException


getFloat

public float getFloat(int p0)
            throws SQLException


getInt

public int getInt(String p0)
            throws SQLException


getInt

public int getInt(int p0)
            throws SQLException


getJDBC

public ResultSet getJDBC()
Returns the underlying JDBC object (in this case, a java.sql.ResultSet)

Returns:
the wrapped JDBC object


getLong

public long getLong(String p0)
            throws SQLException


getLong

public long getLong(int p0)
            throws SQLException


getMetaData

public ResultSetMetaData getMetaData()
            throws SQLException


getObject

public Object getObject(String p0)
            throws SQLException


getObject

public Object getObject(String p0,
                        Map p1)
            throws SQLException


getObject

public Object getObject(int p0)
            throws SQLException


getObject

public Object getObject(int p0,
                        Map p1)
            throws SQLException


getRef

public Ref getRef(String p0)
            throws SQLException


getRef

public Ref getRef(int p0)
            throws SQLException


getRow

public int getRow()
            throws SQLException


getShort

public short getShort(String p0)
            throws SQLException


getShort

public short getShort(int p0)
            throws SQLException


getStatement

public Statement getStatement()
            throws SQLException


getString

public String getString(String p0)
            throws SQLException


getString

public String getString(int p0)
            throws SQLException


getTime

public Time getTime(String p0)
            throws SQLException


getTime

public Time getTime(String p0,
                    Calendar p1)
            throws SQLException


getTime

public Time getTime(int p0)
            throws SQLException


getTime

public Time getTime(int p0,
                    Calendar p1)
            throws SQLException


getTimestamp

public Timestamp getTimestamp(String p0)
            throws SQLException


getTimestamp

public Timestamp getTimestamp(String p0,
                              Calendar p1)
            throws SQLException


getTimestamp

public Timestamp getTimestamp(int p0)
            throws SQLException


getTimestamp

public Timestamp getTimestamp(int p0,
                              Calendar p1)
            throws SQLException


getType

public int getType()
            throws SQLException


getURL

public URL getURL(String p0)
            throws SQLException


getURL

public URL getURL(int p0)
            throws SQLException


getUnicodeStream

public InputStream getUnicodeStream(String p0)
            throws SQLException


getUnicodeStream

public InputStream getUnicodeStream(int p0)
            throws SQLException


getWarnings

public SQLWarning getWarnings()
            throws SQLException


insertRow

public void insertRow()
            throws SQLException


isAfterLast

public boolean isAfterLast()
            throws SQLException


isBeforeFirst

public boolean isBeforeFirst()
            throws SQLException


isFirst

public boolean isFirst()
            throws SQLException


isLast

public boolean isLast()
            throws SQLException


last

public boolean last()
            throws SQLException


moveToCurrentRow

public void moveToCurrentRow()
            throws SQLException


moveToInsertRow

public void moveToInsertRow()
            throws SQLException


next

public boolean next()
            throws SQLException
This gets overloaded in the P6LogResultSet, but may need to do what that class does


previous

public boolean previous()
            throws SQLException


refreshRow

public void refreshRow()
            throws SQLException


relative

public boolean relative(int p0)
            throws SQLException


rowDeleted

public boolean rowDeleted()
            throws SQLException


rowInserted

public boolean rowInserted()
            throws SQLException


rowUpdated

public boolean rowUpdated()
            throws SQLException


setFetchDirection

public void setFetchDirection(int p0)
            throws SQLException


setFetchSize

public void setFetchSize(int p0)
            throws SQLException


updateArray

public void updateArray(String p0,
                        Array p1)
            throws SQLException


updateArray

public void updateArray(int p0,
                        Array p1)
            throws SQLException


updateAsciiStream

public void updateAsciiStream(String p0,
                              InputStream p1,
                              int p2)
            throws SQLException


updateAsciiStream

public void updateAsciiStream(int p0,
                              InputStream p1,
                              int p2)
            throws SQLException


updateBigDecimal

public void updateBigDecimal(String p0,
                             BigDecimal p1)
            throws SQLException


updateBigDecimal

public void updateBigDecimal(int p0,
                             BigDecimal p1)
            throws SQLException


updateBinaryStream

public void updateBinaryStream(String p0,
                               InputStream p1,
                               int p2)
            throws SQLException


updateBinaryStream

public void updateBinaryStream(int p0,
                               InputStream p1,
                               int p2)
            throws SQLException


updateBlob

public void updateBlob(String p0,
                       Blob p1)
            throws SQLException


updateBlob

public void updateBlob(int p0,
                       Blob p1)
            throws SQLException


updateBoolean

public void updateBoolean(String p0,
                          boolean p1)
            throws SQLException


updateBoolean

public void updateBoolean(int p0,
                          boolean p1)
            throws SQLException


updateByte

public void updateByte(String p0,
                       byte p1)
            throws SQLException


updateByte

public void updateByte(int p0,
                       byte p1)
            throws SQLException


updateBytes

public void updateBytes(String p0,
                        byte[] p1)
            throws SQLException


updateBytes

public void updateBytes(int p0,
                        byte[] p1)
            throws SQLException


updateCharacterStream

public void updateCharacterStream(String p0,
                                  Reader p1,
                                  int p2)
            throws SQLException


updateCharacterStream

public void updateCharacterStream(int p0,
                                  Reader p1,
                                  int p2)
            throws SQLException


updateClob

public void updateClob(String p0,
                       Clob p1)
            throws SQLException


updateClob

public void updateClob(int p0,
                       Clob p1)
            throws SQLException


updateDate

public void updateDate(String p0,
                       Date p1)
            throws SQLException


updateDate

public void updateDate(int p0,
                       Date p1)
            throws SQLException


updateDouble

public void updateDouble(String p0,
                         double p1)
            throws SQLException


updateDouble

public void updateDouble(int p0,
                         double p1)
            throws SQLException


updateFloat

public void updateFloat(String p0,
                        float p1)
            throws SQLException


updateFloat

public void updateFloat(int p0,
                        float p1)
            throws SQLException


updateInt

public void updateInt(String p0,
                      int p1)
            throws SQLException


updateInt

public void updateInt(int p0,
                      int p1)
            throws SQLException


updateLong

public void updateLong(String p0,
                       long p1)
            throws SQLException


updateLong

public void updateLong(int p0,
                       long p1)
            throws SQLException


updateNull

public void updateNull(String p0)
            throws SQLException


updateNull

public void updateNull(int p0)
            throws SQLException


updateObject

public void updateObject(String p0,
                         Object p1)
            throws SQLException


updateObject

public void updateObject(String p0,
                         Object p1,
                         int p2)
            throws SQLException


updateObject

public void updateObject(int p0,
                         Object p1)
            throws SQLException


updateObject

public void updateObject(int p0,
                         Object p1,
                         int p2)
            throws SQLException


updateRef

public void updateRef(String p0,
                      Ref p1)
            throws SQLException


updateRef

public void updateRef(int p0,
                      Ref p1)
            throws SQLException


updateRow

public void updateRow()
            throws SQLException


updateShort

public void updateShort(String p0,
                        short p1)
            throws SQLException


updateShort

public void updateShort(int p0,
                        short p1)
            throws SQLException


updateString

public void updateString(String p0,
                         String p1)
            throws SQLException


updateString

public void updateString(int p0,
                         String p1)
            throws SQLException


updateTime

public void updateTime(String p0,
                       Time p1)
            throws SQLException


updateTime

public void updateTime(int p0,
                       Time p1)
            throws SQLException


updateTimestamp

public void updateTimestamp(String p0,
                            Timestamp p1)
            throws SQLException


updateTimestamp

public void updateTimestamp(int p0,
                            Timestamp p1)
            throws SQLException


wasNull

public boolean wasNull()
            throws SQLException