org.arch4j.dataaccess.visitors
Class ResultSetPrinter
java.lang.Object
|
+--org.arch4j.dataaccess.visitors.ResultSetAdapter
|
+--org.arch4j.dataaccess.visitors.ResultSetPrinter
- All Implemented Interfaces:
- ResultSetVisitor
- public class ResultSetPrinter
- extends ResultSetAdapter
This listener will build up text associated with the result set. This
text may be printed to the output stream after processing is finished.
- Version:
- 1.0
- Author:
- Allan Wick
Method Summary |
void |
printOutput()
Print the contents of the buffer to the output stream. |
boolean |
processNextRow(ResultSet aResultSet)
Process the next row of the SQL query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetPrinter
public ResultSetPrinter()
processNextRow
public boolean processNextRow(ResultSet aResultSet)
- Description copied from class:
ResultSetAdapter
- Process the next row of the SQL query. The default is to just keep processing each
row.
- Specified by:
processNextRow
in interface ResultSetVisitor
- Overrides:
processNextRow
in class ResultSetAdapter
- Parameters:
aResultSet
- The result set to process. The cursor is in the proper position.
- Returns:
- true if the processor should keep spinning through the result set.
printOutput
public void printOutput()
- Print the contents of the buffer to the output stream.
Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.