pljava 1.0.0

org.postgresql.pljava.example
Class ComplexReturn

java.lang.Object
  extended byorg.postgresql.pljava.example.ComplexReturn
All Implemented Interfaces:
ResultSetProvider

public class ComplexReturn
extends java.lang.Object
implements ResultSetProvider

Author:
Thomas Hallgren

Constructor Summary
ComplexReturn(int base, int increment)
           
 
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.
static boolean complexReturn(int base, int increment, java.sql.ResultSet receiver)
           
static java.lang.String makeString(java.sql.ResultSet _testSetReturn)
           
static ResultSetProvider setReturn(int base, int increment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexReturn

public ComplexReturn(int base,
                     int increment)
Method Detail

assignRowValues

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

Specified by:
assignRowValues in interface ResultSetProvider
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

setReturn

public static ResultSetProvider setReturn(int base,
                                          int increment)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

complexReturn

public static boolean complexReturn(int base,
                                    int increment,
                                    java.sql.ResultSet receiver)
                             throws java.sql.SQLException
Throws:
java.sql.SQLException

makeString

public static java.lang.String makeString(java.sql.ResultSet _testSetReturn)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

pljava 1.0.0