com.mungoknotwise.sqlcli
Interface ResultSetExtractor

All Known Implementing Classes:
PrintStreamedDescribeResultSetExtractor, PrintStreamedResultSetExtractor, PrintStreamedShowTablesResultSetExtractor

public interface ResultSetExtractor

Defines the operations for extracting data from a result set.

Version:
$Id: ResultSetExtractor.java,v 1.2 2004/09/07 22:10:32 mungoknotwise Exp $
Author:
Steven Caswell

Method Summary
 java.lang.Object extractData(java.sql.ResultSet resultSet)
          Extracts data from the result set.
 void setAttribute(java.lang.String key, java.lang.Object value)
          Sets the attribute value with the specified key.
 

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.

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.

Parameters:
key - the attribute key
value - the attribute value


Copyright © 2004 Steven Caswell. All Rights Reserved.