|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.dataaccess.visitors.ResultSetAdapter
The default implementation of the ResultSetListener. This class may be subclassed by users and only override those methods that they are interested in. This may also provide an upgrade path since new methods may be added to the listener and implemented by the adapter without affecting existing code.
Constructor Summary | |
ResultSetAdapter()
|
Method Summary | |
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 ResultSetAdapter()
Method Detail |
public boolean processNextRow(ResultSet aResultSet)
processNextRow
in interface ResultSetVisitor
aResultSet
- The result set to process. The cursor is in the proper position.
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 |