org.postgresql.pljava.example
Class UsingPropertiesAsResultSet

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

public class UsingPropertiesAsResultSet
extends Object
implements ResultSetHandle

This implementation uses another function that returns a set of a complex type and returns the ResultSet produced by a query.

Author:
Thomas Hallgren

Constructor Summary
UsingPropertiesAsResultSet()
           
 
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 getProperties()
           
 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

UsingPropertiesAsResultSet

public UsingPropertiesAsResultSet()
Method Detail

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

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

getProperties

public static ResultSetHandle getProperties()
                                     throws SQLException
Throws:
SQLException