com.p6spy.engine.spy

Class P6ResultSet

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 ResultSetpassthru
protected StringpreparedQuery
protected Stringquery
protected P6Statementstatement
Constructor Summary
P6ResultSet(P6Factory factory, ResultSet resultSet, P6Statement statement, String preparedQuery, String query)
Method Summary
booleanabsolute(int p0)
voidafterLast()
voidbeforeFirst()
voidcancelRowUpdates()
voidclearWarnings()
voidclose()
voiddeleteRow()
intfindColumn(String p0)
booleanfirst()
ArraygetArray(int p0)
ArraygetArray(String p0)
InputStreamgetAsciiStream(String p0)
InputStreamgetAsciiStream(int p0)
BigDecimalgetBigDecimal(String p0)
BigDecimalgetBigDecimal(int p0)
BigDecimalgetBigDecimal(int p0, int p1)
BigDecimalgetBigDecimal(String p0, int p1)
InputStreamgetBinaryStream(int p0)
InputStreamgetBinaryStream(String p0)
BlobgetBlob(int p0)
BlobgetBlob(String p0)
booleangetBoolean(int p0)
booleangetBoolean(String p0)
bytegetByte(String p0)
bytegetByte(int p0)
byte[]getBytes(String p0)
byte[]getBytes(int p0)
ReadergetCharacterStream(String p0)
ReadergetCharacterStream(int p0)
ClobgetClob(String p0)
ClobgetClob(int p0)
intgetConcurrency()
StringgetCursorName()
DategetDate(int p0)
DategetDate(String p0, Calendar p1)
DategetDate(String p0)
DategetDate(int p0, Calendar p1)
doublegetDouble(int p0)
doublegetDouble(String p0)
intgetFetchDirection()
intgetFetchSize()
floatgetFloat(String p0)
floatgetFloat(int p0)
intgetInt(int p0)
intgetInt(String p0)
ResultSetgetJDBC()
Returns the underlying JDBC object (in this case, a java.sql.ResultSet)
longgetLong(int p0)
longgetLong(String p0)
ResultSetMetaDatagetMetaData()
ObjectgetObject(String p0, Map p1)
ObjectgetObject(int p0)
ObjectgetObject(String p0)
ObjectgetObject(int p0, Map p1)
RefgetRef(String p0)
RefgetRef(int p0)
intgetRow()
shortgetShort(String p0)
shortgetShort(int p0)
StatementgetStatement()
StringgetString(String p0)
StringgetString(int p0)
TimegetTime(int p0, Calendar p1)
TimegetTime(String p0, Calendar p1)
TimegetTime(String p0)
TimegetTime(int p0)
TimestampgetTimestamp(String p0)
TimestampgetTimestamp(String p0, Calendar p1)
TimestampgetTimestamp(int p0)
TimestampgetTimestamp(int p0, Calendar p1)
intgetType()
InputStreamgetUnicodeStream(int p0)
InputStreamgetUnicodeStream(String p0)
URLgetURL(int p0)
URLgetURL(String p0)
SQLWarninggetWarnings()
voidinsertRow()
booleanisAfterLast()
booleanisBeforeFirst()
booleanisFirst()
booleanisLast()
booleanlast()
voidmoveToCurrentRow()
voidmoveToInsertRow()
booleannext()
This gets overloaded in the P6LogResultSet, but may need to do what that class does
booleanprevious()
voidrefreshRow()
booleanrelative(int p0)
booleanrowDeleted()
booleanrowInserted()
booleanrowUpdated()
voidsetFetchDirection(int p0)
voidsetFetchSize(int p0)
voidupdateArray(int p0, Array p1)
voidupdateArray(String p0, Array p1)
voidupdateAsciiStream(int p0, InputStream p1, int p2)
voidupdateAsciiStream(String p0, InputStream p1, int p2)
voidupdateBigDecimal(String p0, BigDecimal p1)
voidupdateBigDecimal(int p0, BigDecimal p1)
voidupdateBinaryStream(int p0, InputStream p1, int p2)
voidupdateBinaryStream(String p0, InputStream p1, int p2)
voidupdateBlob(int p0, Blob p1)
voidupdateBlob(String p0, Blob p1)
voidupdateBoolean(int p0, boolean p1)
voidupdateBoolean(String p0, boolean p1)
voidupdateByte(String p0, byte p1)
voidupdateByte(int p0, byte p1)
voidupdateBytes(int p0, byte[] p1)
voidupdateBytes(String p0, byte[] p1)
voidupdateCharacterStream(int p0, Reader p1, int p2)
voidupdateCharacterStream(String p0, Reader p1, int p2)
voidupdateClob(int p0, Clob p1)
voidupdateClob(String p0, Clob p1)
voidupdateDate(int p0, Date p1)
voidupdateDate(String p0, Date p1)
voidupdateDouble(int p0, double p1)
voidupdateDouble(String p0, double p1)
voidupdateFloat(String p0, float p1)
voidupdateFloat(int p0, float p1)
voidupdateInt(int p0, int p1)
voidupdateInt(String p0, int p1)
voidupdateLong(int p0, long p1)
voidupdateLong(String p0, long p1)
voidupdateNull(int p0)
voidupdateNull(String p0)
voidupdateObject(int p0, Object p1)
voidupdateObject(int p0, Object p1, int p2)
voidupdateObject(String p0, Object p1)
voidupdateObject(String p0, Object p1, int p2)
voidupdateRef(int p0, Ref p1)
voidupdateRef(String p0, Ref p1)
voidupdateRow()
voidupdateShort(int p0, short p1)
voidupdateShort(String p0, short p1)
voidupdateString(String p0, String p1)
voidupdateString(int p0, String p1)
voidupdateTime(String p0, Time p1)
voidupdateTime(int p0, Time p1)
voidupdateTimestamp(int p0, Timestamp p1)
voidupdateTimestamp(String p0, Timestamp p1)
booleanwasNull()

Field Detail

passthru

protected ResultSet passthru

preparedQuery

protected String preparedQuery

query

protected String query

statement

protected P6Statement statement

Constructor Detail

P6ResultSet

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

Method Detail

absolute

public boolean absolute(int p0)

afterLast

public void afterLast()

beforeFirst

public void beforeFirst()

cancelRowUpdates

public void cancelRowUpdates()

clearWarnings

public void clearWarnings()

close

public void close()

deleteRow

public void deleteRow()

findColumn

public int findColumn(String p0)

first

public boolean first()

getArray

public Array getArray(int p0)

getArray

public Array getArray(String p0)

getAsciiStream

public InputStream getAsciiStream(String p0)

getAsciiStream

public InputStream getAsciiStream(int p0)

getBigDecimal

public BigDecimal getBigDecimal(String p0)

getBigDecimal

public BigDecimal getBigDecimal(int p0)

getBigDecimal

public BigDecimal getBigDecimal(int p0, int p1)

getBigDecimal

public BigDecimal getBigDecimal(String p0, int p1)

getBinaryStream

public InputStream getBinaryStream(int p0)

getBinaryStream

public InputStream getBinaryStream(String p0)

getBlob

public Blob getBlob(int p0)

getBlob

public Blob getBlob(String p0)

getBoolean

public boolean getBoolean(int p0)

getBoolean

public boolean getBoolean(String p0)

getByte

public byte getByte(String p0)

getByte

public byte getByte(int p0)

getBytes

public byte[] getBytes(String p0)

getBytes

public byte[] getBytes(int p0)

getCharacterStream

public Reader getCharacterStream(String p0)

getCharacterStream

public Reader getCharacterStream(int p0)

getClob

public Clob getClob(String p0)

getClob

public Clob getClob(int p0)

getConcurrency

public int getConcurrency()

getCursorName

public String getCursorName()

getDate

public Date getDate(int p0)

getDate

public Date getDate(String p0, Calendar p1)

getDate

public Date getDate(String p0)

getDate

public Date getDate(int p0, Calendar p1)

getDouble

public double getDouble(int p0)

getDouble

public double getDouble(String p0)

getFetchDirection

public int getFetchDirection()

getFetchSize

public int getFetchSize()

getFloat

public float getFloat(String p0)

getFloat

public float getFloat(int p0)

getInt

public int getInt(int p0)

getInt

public int getInt(String p0)

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(int p0)

getLong

public long getLong(String p0)

getMetaData

public ResultSetMetaData getMetaData()

getObject

public Object getObject(String p0, Map p1)

getObject

public Object getObject(int p0)

getObject

public Object getObject(String p0)

getObject

public Object getObject(int p0, Map p1)

getRef

public Ref getRef(String p0)

getRef

public Ref getRef(int p0)

getRow

public int getRow()

getShort

public short getShort(String p0)

getShort

public short getShort(int p0)

getStatement

public Statement getStatement()

getString

public String getString(String p0)

getString

public String getString(int p0)

getTime

public Time getTime(int p0, Calendar p1)

getTime

public Time getTime(String p0, Calendar p1)

getTime

public Time getTime(String p0)

getTime

public Time getTime(int p0)

getTimestamp

public Timestamp getTimestamp(String p0)

getTimestamp

public Timestamp getTimestamp(String p0, Calendar p1)

getTimestamp

public Timestamp getTimestamp(int p0)

getTimestamp

public Timestamp getTimestamp(int p0, Calendar p1)

getType

public int getType()

getUnicodeStream

public InputStream getUnicodeStream(int p0)

getUnicodeStream

public InputStream getUnicodeStream(String p0)

getURL

public URL getURL(int p0)

getURL

public URL getURL(String p0)

getWarnings

public SQLWarning getWarnings()

insertRow

public void insertRow()

isAfterLast

public boolean isAfterLast()

isBeforeFirst

public boolean isBeforeFirst()

isFirst

public boolean isFirst()

isLast

public boolean isLast()

last

public boolean last()

moveToCurrentRow

public void moveToCurrentRow()

moveToInsertRow

public void moveToInsertRow()

next

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

previous

public boolean previous()

refreshRow

public void refreshRow()

relative

public boolean relative(int p0)

rowDeleted

public boolean rowDeleted()

rowInserted

public boolean rowInserted()

rowUpdated

public boolean rowUpdated()

setFetchDirection

public void setFetchDirection(int p0)

setFetchSize

public void setFetchSize(int p0)

updateArray

public void updateArray(int p0, Array p1)

updateArray

public void updateArray(String p0, Array p1)

updateAsciiStream

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

updateAsciiStream

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

updateBigDecimal

public void updateBigDecimal(String p0, BigDecimal p1)

updateBigDecimal

public void updateBigDecimal(int p0, BigDecimal p1)

updateBinaryStream

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

updateBinaryStream

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

updateBlob

public void updateBlob(int p0, Blob p1)

updateBlob

public void updateBlob(String p0, Blob p1)

updateBoolean

public void updateBoolean(int p0, boolean p1)

updateBoolean

public void updateBoolean(String p0, boolean p1)

updateByte

public void updateByte(String p0, byte p1)

updateByte

public void updateByte(int p0, byte p1)

updateBytes

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

updateBytes

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

updateCharacterStream

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

updateCharacterStream

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

updateClob

public void updateClob(int p0, Clob p1)

updateClob

public void updateClob(String p0, Clob p1)

updateDate

public void updateDate(int p0, Date p1)

updateDate

public void updateDate(String p0, Date p1)

updateDouble

public void updateDouble(int p0, double p1)

updateDouble

public void updateDouble(String p0, double p1)

updateFloat

public void updateFloat(String p0, float p1)

updateFloat

public void updateFloat(int p0, float p1)

updateInt

public void updateInt(int p0, int p1)

updateInt

public void updateInt(String p0, int p1)

updateLong

public void updateLong(int p0, long p1)

updateLong

public void updateLong(String p0, long p1)

updateNull

public void updateNull(int p0)

updateNull

public void updateNull(String p0)

updateObject

public void updateObject(int p0, Object p1)

updateObject

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

updateObject

public void updateObject(String p0, Object p1)

updateObject

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

updateRef

public void updateRef(int p0, Ref p1)

updateRef

public void updateRef(String p0, Ref p1)

updateRow

public void updateRow()

updateShort

public void updateShort(int p0, short p1)

updateShort

public void updateShort(String p0, short p1)

updateString

public void updateString(String p0, String p1)

updateString

public void updateString(int p0, String p1)

updateTime

public void updateTime(String p0, Time p1)

updateTime

public void updateTime(int p0, Time p1)

updateTimestamp

public void updateTimestamp(int p0, Timestamp p1)

updateTimestamp

public void updateTimestamp(String p0, Timestamp p1)

wasNull

public boolean wasNull()