|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CachedRowSet | +--org.arch4j.dataaccess.visitors.ResultSetCache
This visitor will "cache" the values from a result set so that they may be passed around without having to keep a connection open, etc. Download CachedRowSet
Constructor Summary | |
ResultSetCache()
Constructs a new default CachedRowSet object |
Method Summary | |
int |
getNumberOfRows()
Number of rows in the cache. |
int |
getNumberOfRowsAffected()
Gets the number of rows affected by the sql. |
boolean |
processNextRow(ResultSet aResultSet)
Process the next row of the SQL query. |
void |
setNumberOfRowsAffected(int aNumberAffected)
Sets the number of rows affected by the sql. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultSetCache() throws SQLException
SQLException
- Creation exceptionMethod Detail |
public boolean processNextRow(ResultSet aResultSet)
processNextRow
in interface ResultSetVisitor
aResultSet
- The result set to process. The cursor is in the proper position.
public int getNumberOfRows()
public void setNumberOfRowsAffected(int aNumberAffected)
setNumberOfRowsAffected
in interface ResultSetVisitor
aNumberAffected
- The number of rows that have been affected.public int getNumberOfRowsAffected()
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |