org.postgresql.pljava
Interface ResultSetProvider


public interface ResultSetProvider

An implementation of this interface is returned from functions and procedures that are declared to return SET OF a type.


Method Summary
 boolean assignRowValues(java.sql.ResultSet receiver, int currentRow)
          This method is called once for each row that should be returned from a procedure that returns a set of rows.
 

Method Detail

assignRowValues

public boolean assignRowValues(java.sql.ResultSet receiver,
                               int currentRow)
                        throws java.sql.SQLException
This method is called once for each row that should be returned from a procedure that returns a set of rows.

Parameters:
receiver - Receiver of values for the given row.
currentRow - Row number. First call will have row number 0.
Returns:
true if a new row was provided, false if not (end of data).
Throws:
java.sql.SQLException


Copyright (c) 2003, 2004 TADA AB - Taby Sweden. Distributed under the terms shown in COPYRIGHT