Package org.postgresql.pljava.example
Class UsingProperties
java.lang.Object
org.postgresql.pljava.example.UsingProperties
- All Implemented Interfaces:
PooledObject
,ResultSetProvider
,ResultSetProvider.Large
Illustrates use of the
ResultSetProvider
interface to return
(key,value) rows from the example.properties
file, also making use
of PL/Java's ObjectPool
facility.- Author:
- Thomas Hallgren
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.postgresql.pljava.ResultSetProvider
ResultSetProvider.Large
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
boolean
assignRowValues
(ResultSet receiver, long currentRow) void
close()
static ResultSetProvider
void
void
remove()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.postgresql.pljava.ResultSetProvider.Large
assignRowValues
-
Constructor Details
-
UsingProperties
- Throws:
IOException
-
-
Method Details
-
getProperties
- Throws:
SQLException
-
activate
- Specified by:
activate
in interfacePooledObject
-
assignRowValues
- Specified by:
assignRowValues
in interfaceResultSetProvider
- Specified by:
assignRowValues
in interfaceResultSetProvider.Large
- Throws:
SQLException
-
close
- Specified by:
close
in interfaceResultSetProvider
- Throws:
SQLException
-
passivate
- Specified by:
passivate
in interfacePooledObject
-
remove
- Specified by:
remove
in interfacePooledObject
-