Arch4J 1.1

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

Constructor Summary
ResultSetPrinter()
           
 
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 org.arch4j.dataaccess.visitors.ResultSetAdapter
getNumberOfRowsAffected, setNumberOfRowsAffected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetPrinter

public ResultSetPrinter()
Method Detail

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.


Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.