Package org.postgresql.pljava.example
Class HugeResultSet
- java.lang.Object
-
- org.postgresql.pljava.example.HugeResultSet
-
- All Implemented Interfaces:
org.postgresql.pljava.ResultSetProvider
public class HugeResultSet extends Object implements org.postgresql.pljava.ResultSetProvider
Example implementingResultSetProvider
to provide a function that generates and returns a lot of rows (caller passes the desired row count) each containing the row number, a random integer, and a timestamp.
-
-
Constructor Summary
Constructors Constructor Description HugeResultSet(int rowCount)
-
Method Summary
Modifier and Type Method Description boolean
assignRowValues(ResultSet receiver, int currentRow)
void
close()
static org.postgresql.pljava.ResultSetProvider
executeSelect(int rowCount)
-
-
-
Constructor Detail
-
HugeResultSet
public HugeResultSet(int rowCount) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
executeSelect
public static org.postgresql.pljava.ResultSetProvider executeSelect(int rowCount) throws SQLException
- Throws:
SQLException
-
assignRowValues
public boolean assignRowValues(ResultSet receiver, int currentRow) throws SQLException
- Specified by:
assignRowValues
in interfaceorg.postgresql.pljava.ResultSetProvider
- Throws:
SQLException
-
close
public void close()
- Specified by:
close
in interfaceorg.postgresql.pljava.ResultSetProvider
-
-