net.spy.db
Class CachedResultSetStub

java.lang.Object
  extended bynet.spy.SpyObject
      extended bynet.spy.db.GenericResultSetStub
          extended bynet.spy.db.CachedResultSetStub
All Implemented Interfaces:
Cloneable

public class CachedResultSetStub
extends GenericResultSetStub

This object represents a cached java.sql.ResultSet. It will hopefully only contain small results.


Constructor Summary
CachedResultSetStub(ResultSet rs)
          Magically transform the passed in ResultSet to a CachedResultSet
 
Method Summary
 CachedResultSetStub newCopy()
          Make a copy of this object.
 int numCopies()
          How many copies have been made of this result set?
 
Methods inherited from class net.spy.db.GenericResultSetStub
clearWarnings, close, findColumn, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getResultColumn, getShort, getShort, getString, getString, getTime, getTime, getTimestamp, getTimestamp, getWarnings, next, resetResults, setMetaData, setResults, toString, wasNull
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachedResultSetStub

public CachedResultSetStub(ResultSet rs)
                    throws SQLException
Magically transform the passed in ResultSet to a CachedResultSet

Parameters:
rs - the ResultSet we want to magically transform
Throws:
SQLException - if the ResultSet somehow fails us.
Method Detail

newCopy

public CachedResultSetStub newCopy()
Make a copy of this object.


numCopies

public int numCopies()
How many copies have been made of this result set?

Returns:
the number of copies