Package org.postgresql.pljava.example
Class Users
- java.lang.Object
-
- org.postgresql.pljava.example.Users
-
- All Implemented Interfaces:
org.postgresql.pljava.ResultSetHandle
public class Users extends Object implements org.postgresql.pljava.ResultSetHandle
Uses theResultSetHandle
interface to implement two functions,listNonSupers
andlistSupers
, returning the corresponding subsets of rows frompg_user
.
-
-
Method Summary
Modifier and Type Method Description void
close()
ResultSet
getResultSet()
static org.postgresql.pljava.ResultSetHandle
listNonSupers()
static org.postgresql.pljava.ResultSetHandle
listSupers()
-
-
-
Method Detail
-
listNonSupers
public static org.postgresql.pljava.ResultSetHandle listNonSupers()
-
listSupers
public static org.postgresql.pljava.ResultSetHandle listSupers()
-
close
public void close() throws SQLException
- Specified by:
close
in interfaceorg.postgresql.pljava.ResultSetHandle
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet() throws SQLException
- Specified by:
getResultSet
in interfaceorg.postgresql.pljava.ResultSetHandle
- Throws:
SQLException
-
-