org.postgresql.pljava
Interface ResultSetHandle

All Known Implementing Classes:
SetOfRecordTest, Users, UsingPropertiesAsResultSet

public interface ResultSetHandle

An implementation of this interface is returned from functions and procedures that are declared to return SET OF a complex type in the form of a ResultSet. The primary motivation for this interface is that an implementation that returns a ResultSet must be able to close the connection and statement when no more rows are requested.

Author:
Thomas Hallgren

Method Summary
 void close()
          Called after the last row has returned or when the query evaluator decides that it does not need any more rows.
 ResultSet getResultSet()
          An implementation of this method will probably execute a query and return the result of that query.
 

Method Detail

getResultSet

ResultSet getResultSet()
                       throws SQLException
An implementation of this method will probably execute a query and return the result of that query.

Returns:
The ResultSet that represents the rows to be returned.
Throws:
SQLException

close

void close()
           throws SQLException
Called after the last row has returned or when the query evaluator decides that it does not need any more rows.

Throws:
SQLException