com.mungoknotwise.sqlcli
Class PrintStreamedResultSetExtractor

java.lang.Object
  |
  +--com.mungoknotwise.sqlcli.BasicPrintStreamed
        |
        +--com.mungoknotwise.sqlcli.PrintStreamedResultSetExtractor
All Implemented Interfaces:
PrintStreamed, ResultSetExtractor

public class PrintStreamedResultSetExtractor
extends BasicPrintStreamed
implements ResultSetExtractor

Implementation of ResultSetExtractor that writes the result set to the object's print streams.

Version:
$Id: PrintStreamedResultSetExtractor.java,v 1.1.1.1 2004/07/28 01:12:38 mungoknotwise Exp $
Author:
Steven Caswell

Constructor Summary
PrintStreamedResultSetExtractor()
          Constructs a new instance of PrintStreamedResultSetExtractor.
 
Method Summary
 java.lang.Object extractData(java.sql.ResultSet resultSet)
          Extracts data from the result set. Implementing classes are expected to step through each row of the result set and handle the rows as desired.
 
Methods inherited from class com.mungoknotwise.sqlcli.BasicPrintStreamed
addPrintStream, print, println, removePrintStream, streamIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mungoknotwise.sqlcli.ResultSetExtractor
setAttribute
 

Constructor Detail

PrintStreamedResultSetExtractor

public PrintStreamedResultSetExtractor()
Constructs a new instance of PrintStreamedResultSetExtractor.

Method Detail

extractData

public java.lang.Object extractData(java.sql.ResultSet resultSet)
                             throws java.sql.SQLException
Extracts data from the result set. Implementing classes are expected to step through each row of the result set and handle the rows as desired.

Specified by:
extractData in interface ResultSetExtractor
Parameters:
resultSet - the result set
Returns:
the extracted result set
Throws:
java.sql.SQLException - if an error occurs


Copyright © 2004 Steven Caswell. All Rights Reserved.