| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.commons.dbcp.AbandonedTraceorg.apache.commons.dbcp.DelegatingResultSetResultSet.
All of the methods from the ResultSet interface
simply call the corresponding method on the "delegate"
provided in my constructor.
Extends AbandonedTrace to implement result set tracking and
logging of code which created the ResultSet. Tracking the
ResultSet ensures that the Statment which created it can
close any open ResultSet's on Statement close.
Constructor Summary | |
| |
Method Summary | |
boolean |
|
void | |
void | |
void | |
void | |
void |
|
void | |
boolean |
|
int |
|
boolean |
|
Array |
|
Array |
|
InputStream |
|
InputStream |
|
BigDecimal |
|
BigDecimal |
|
BigDecimal |
|
BigDecimal |
|
InputStream |
|
InputStream |
|
Blob |
|
Blob |
|
boolean |
|
boolean |
|
byte |
|
byte |
|
byte[] |
|
byte[] |
|
Reader |
|
Reader |
|
Clob |
|
Clob |
|
int | |
String | |
Date |
|
Date |
|
Date |
|
Date |
|
ResultSet | |
double |
|
double |
|
int | |
int | |
float |
|
float |
|
ResultSet |
|
int |
|
int |
|
long |
|
long |
|
ResultSetMetaData | |
Object |
|
Object |
|
Object |
|
Object |
|
Ref |
|
Ref |
|
int |
|
short |
|
short |
|
Statement | |
String |
|
String |
|
Time |
|
Time |
|
Time |
|
Time |
|
Timestamp |
|
Timestamp |
|
Timestamp |
|
Timestamp |
|
int |
|
URL |
|
URL |
|
InputStream |
|
InputStream |
|
SQLWarning | |
int |
|
void | |
boolean | |
boolean | |
boolean |
|
boolean |
|
boolean |
|
void | |
void | |
boolean |
|
boolean |
|
void | |
boolean |
|
boolean | |
boolean | |
boolean | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
boolean |
|
static ResultSet |
|
Methods inherited from class org.apache.commons.dbcp.AbandonedTrace | |
printStackTrace | |
public DelegatingResultSet(Statement stmt,
ResultSet res)Create a wrapper for the ResultSet which traces this ResultSet to the Statement which created it and the code which created it.
- Parameters:
stmt- Statement which created this ResultSetres- ResultSet to wrap
public boolean absolute(int row)
throws SQLExceptionpublic void afterLast()
throws SQLExceptionpublic void beforeFirst()
throws SQLExceptionpublic void cancelRowUpdates()
throws SQLExceptionpublic void clearWarnings()
throws SQLExceptionpublic void close()
throws SQLExceptionWrapper for close of ResultSet which removes this result set from being traced then calls close on the original ResultSet.
public void deleteRow()
throws SQLExceptionpublic boolean equals(Object obj)
public int findColumn(String columnName)
throws SQLExceptionpublic boolean first()
throws SQLExceptionpublic Array getArray(String colName)
throws SQLExceptionpublic Array getArray(int i)
throws SQLExceptionpublic InputStream getAsciiStream(String columnName)
throws SQLExceptionpublic InputStream getAsciiStream(int columnIndex)
throws SQLExceptionpublic BigDecimal getBigDecimal(String columnName)
throws SQLExceptionpublic BigDecimal getBigDecimal(String columnName,
int scale)
throws SQLExceptionDeprecated.
public BigDecimal getBigDecimal(int columnIndex)
throws SQLExceptionpublic BigDecimal getBigDecimal(int columnIndex,
int scale)
throws SQLExceptionDeprecated.
public InputStream getBinaryStream(String columnName)
throws SQLExceptionpublic InputStream getBinaryStream(int columnIndex)
throws SQLExceptionpublic Blob getBlob(String colName)
throws SQLExceptionpublic Blob getBlob(int i)
throws SQLExceptionpublic boolean getBoolean(String columnName)
throws SQLExceptionpublic boolean getBoolean(int columnIndex)
throws SQLExceptionpublic byte getByte(String columnName)
throws SQLExceptionpublic byte getByte(int columnIndex)
throws SQLExceptionpublic byte[] getBytes(String columnName)
throws SQLExceptionpublic byte[] getBytes(int columnIndex)
throws SQLExceptionpublic Reader getCharacterStream(String columnName)
throws SQLExceptionpublic Reader getCharacterStream(int columnIndex)
throws SQLExceptionpublic Clob getClob(String colName)
throws SQLExceptionpublic Clob getClob(int i)
throws SQLExceptionpublic int getConcurrency()
throws SQLExceptionpublic String getCursorName()
throws SQLExceptionpublic Date getDate(String columnName)
throws SQLExceptionpublic Date getDate(String columnName,
Calendar cal)
throws SQLExceptionpublic Date getDate(int columnIndex)
throws SQLExceptionpublic Date getDate(int columnIndex,
Calendar cal)
throws SQLExceptionpublic ResultSet getDelegate()
public double getDouble(String columnName)
throws SQLExceptionpublic double getDouble(int columnIndex)
throws SQLExceptionpublic int getFetchDirection()
throws SQLExceptionpublic int getFetchSize()
throws SQLExceptionpublic float getFloat(String columnName)
throws SQLExceptionpublic float getFloat(int columnIndex)
throws SQLExceptionpublic ResultSet getInnermostDelegate()
If my underlyingResultSetis not a DelegatingResultSet, returns it, otherwise recursively invokes this method on my delegate. Hence this method will return the first delegate that is not a DelegatingResultSet, or null when no non-DelegatingResultSet delegate can be found by transversing this chain. This method is useful when you may have nested DelegatingResultSets, and you want to make sure to obtain a "genuine"ResultSet.
public int getInt(String columnName)
throws SQLExceptionpublic int getInt(int columnIndex)
throws SQLExceptionpublic long getLong(String columnName)
throws SQLExceptionpublic long getLong(int columnIndex)
throws SQLExceptionpublic ResultSetMetaData getMetaData()
throws SQLExceptionpublic Object getObject(String columnName)
throws SQLExceptionpublic Object getObject(String colName,
Map map)
throws SQLExceptionpublic Object getObject(int columnIndex)
throws SQLExceptionpublic Object getObject(int i,
Map map)
throws SQLExceptionpublic Ref getRef(String colName)
throws SQLExceptionpublic Ref getRef(int i)
throws SQLExceptionpublic int getRow()
throws SQLExceptionpublic short getShort(String columnName)
throws SQLExceptionpublic short getShort(int columnIndex)
throws SQLExceptionpublic Statement getStatement()
throws SQLExceptionpublic String getString(String columnName)
throws SQLExceptionpublic String getString(int columnIndex)
throws SQLExceptionpublic Time getTime(String columnName)
throws SQLExceptionpublic Time getTime(String columnName,
Calendar cal)
throws SQLExceptionpublic Time getTime(int columnIndex)
throws SQLExceptionpublic Time getTime(int columnIndex,
Calendar cal)
throws SQLExceptionpublic Timestamp getTimestamp(String columnName)
throws SQLExceptionpublic Timestamp getTimestamp(String columnName,
Calendar cal)
throws SQLExceptionpublic Timestamp getTimestamp(int columnIndex)
throws SQLExceptionpublic Timestamp getTimestamp(int columnIndex,
Calendar cal)
throws SQLExceptionpublic int getType()
throws SQLExceptionpublic InputStream getUnicodeStream(String columnName)
throws SQLExceptionDeprecated.
public InputStream getUnicodeStream(int columnIndex)
throws SQLExceptionDeprecated.
public SQLWarning getWarnings()
throws SQLExceptionpublic int hashCode()
public void insertRow()
throws SQLExceptionpublic boolean isAfterLast()
throws SQLExceptionpublic boolean isBeforeFirst()
throws SQLExceptionpublic boolean isFirst()
throws SQLExceptionpublic boolean isLast()
throws SQLExceptionpublic boolean last()
throws SQLExceptionpublic void moveToCurrentRow()
throws SQLExceptionpublic void moveToInsertRow()
throws SQLExceptionpublic boolean next()
throws SQLExceptionpublic boolean previous()
throws SQLExceptionpublic void refreshRow()
throws SQLExceptionpublic boolean relative(int rows)
throws SQLExceptionpublic boolean rowDeleted()
throws SQLExceptionpublic boolean rowInserted()
throws SQLExceptionpublic boolean rowUpdated()
throws SQLExceptionpublic void setFetchDirection(int direction)
throws SQLExceptionpublic void setFetchSize(int rows)
throws SQLExceptionpublic void updateArray(String columnName,
Array x)
throws SQLExceptionpublic void updateArray(int columnIndex,
Array x)
throws SQLExceptionpublic void updateAsciiStream(String columnName,
InputStream x,
int length)
throws SQLExceptionpublic void updateAsciiStream(int columnIndex,
InputStream x,
int length)
throws SQLExceptionpublic void updateBigDecimal(String columnName,
BigDecimal x)
throws SQLExceptionpublic void updateBigDecimal(int columnIndex,
BigDecimal x)
throws SQLExceptionpublic void updateBinaryStream(String columnName,
InputStream x,
int length)
throws SQLExceptionpublic void updateBinaryStream(int columnIndex,
InputStream x,
int length)
throws SQLExceptionpublic void updateBlob(String columnName,
Blob x)
throws SQLExceptionpublic void updateBlob(int columnIndex,
Blob x)
throws SQLExceptionpublic void updateBoolean(String columnName,
boolean x)
throws SQLExceptionpublic void updateBoolean(int columnIndex,
boolean x)
throws SQLExceptionpublic void updateByte(String columnName,
byte x)
throws SQLExceptionpublic void updateByte(int columnIndex,
byte x)
throws SQLExceptionpublic void updateBytes(String columnName,
byte[] x)
throws SQLExceptionpublic void updateBytes(int columnIndex,
byte[] x)
throws SQLExceptionpublic void updateCharacterStream(String columnName,
Reader reader,
int length)
throws SQLExceptionpublic void updateCharacterStream(int columnIndex,
Reader x,
int length)
throws SQLExceptionpublic void updateClob(String columnName,
Clob x)
throws SQLExceptionpublic void updateClob(int columnIndex,
Clob x)
throws SQLExceptionpublic void updateDate(String columnName,
Date x)
throws SQLExceptionpublic void updateDate(int columnIndex,
Date x)
throws SQLExceptionpublic void updateDouble(String columnName,
double x)
throws SQLExceptionpublic void updateDouble(int columnIndex,
double x)
throws SQLExceptionpublic void updateFloat(String columnName,
float x)
throws SQLExceptionpublic void updateFloat(int columnIndex,
float x)
throws SQLExceptionpublic void updateInt(String columnName,
int x)
throws SQLExceptionpublic void updateInt(int columnIndex,
int x)
throws SQLExceptionpublic void updateLong(String columnName,
long x)
throws SQLExceptionpublic void updateLong(int columnIndex,
long x)
throws SQLExceptionpublic void updateNull(String columnName)
throws SQLExceptionpublic void updateNull(int columnIndex)
throws SQLExceptionpublic void updateObject(String columnName,
Object x)
throws SQLExceptionpublic void updateObject(String columnName,
Object x,
int scale)
throws SQLExceptionpublic void updateObject(int columnIndex,
Object x)
throws SQLExceptionpublic void updateObject(int columnIndex,
Object x,
int scale)
throws SQLExceptionpublic void updateRef(String columnName,
Ref x)
throws SQLExceptionpublic void updateRef(int columnIndex,
Ref x)
throws SQLExceptionpublic void updateRow()
throws SQLExceptionpublic void updateShort(String columnName,
short x)
throws SQLExceptionpublic void updateShort(int columnIndex,
short x)
throws SQLExceptionpublic void updateString(String columnName,
String x)
throws SQLExceptionpublic void updateString(int columnIndex,
String x)
throws SQLExceptionpublic void updateTime(String columnName,
Time x)
throws SQLExceptionpublic void updateTime(int columnIndex,
Time x)
throws SQLExceptionpublic void updateTimestamp(String columnName,
Timestamp x)
throws SQLExceptionpublic void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLExceptionpublic boolean wasNull()
throws SQLExceptionpublic static ResultSet wrapResultSet(Statement stmt,
ResultSet rset)