com.mungoknotwise.sqlcli
Class PrintStreamedDescribeResultSetExtractor

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

public class PrintStreamedDescribeResultSetExtractor
extends BasicPrintStreamed
implements ResultSetExtractor

An implementation of the ResultSetExtractor that writes the results of a describe command to the provided print streams.

Version:
$Id: PrintStreamedDescribeResultSetExtractor.java,v 1.4 2004/10/20 21:41:32 mungoknotwise Exp $
Author:
Steven Caswell

Constructor Summary
PrintStreamedDescribeResultSetExtractor()
          Constructs a new instance of PrintStreamedDescribeResultSetExtractor.
 
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.
 void setAttribute(java.lang.String key, java.lang.Object value)
          Sets the attribute value with the specified key.
 
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
 

Constructor Detail

PrintStreamedDescribeResultSetExtractor

public PrintStreamedDescribeResultSetExtractor()
Constructs a new instance of PrintStreamedDescribeResultSetExtractor.

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

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
Sets the attribute value with the specified key.

Specified by:
setAttribute in interface ResultSetExtractor
Parameters:
key - the attribute key
value - the attribute value


Copyright © 2004 Steven Caswell. All Rights Reserved.