org.postgresql.pljava.example
Class SetOfRecordTest

java.lang.Object
  extended by org.postgresql.pljava.example.SetOfRecordTest
All Implemented Interfaces:
ResultSetHandle

public class SetOfRecordTest
extends Object
implements ResultSetHandle


Constructor Summary
SetOfRecordTest(String selectSQL)
           
 
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.
static ResultSetHandle executeSelect(String selectSQL)
           
 ResultSet getResultSet()
          An implementation of this method will probably execute a query and return the result of that query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetOfRecordTest

public SetOfRecordTest(String selectSQL)
                throws SQLException
Throws:
SQLException
Method Detail

executeSelect

public static ResultSetHandle executeSelect(String selectSQL)
                                     throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Description copied from interface: ResultSetHandle
Called after the last row has returned or when the query evaluator decides that it does not need any more rows.

Specified by:
close in interface ResultSetHandle
Throws:
SQLException

getResultSet

public ResultSet getResultSet()
                       throws SQLException
Description copied from interface: ResultSetHandle
An implementation of this method will probably execute a query and return the result of that query.

Specified by:
getResultSet in interface ResultSetHandle
Returns:
The ResultSet that represents the rows to be returned.
Throws:
SQLException