|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.example.UsingProperties
public class UsingProperties
Constructor Summary | |
---|---|
UsingProperties(ObjectPool pool)
|
Method Summary | |
---|---|
void |
activate()
The activate method is called when the instance is activated from its "passive" state. |
boolean |
assignRowValues(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. |
void |
close()
Called after the last row has returned or when the query evaluator decides that it does not need any more rows. |
static ResultSetProvider |
getProperties()
|
void |
passivate()
The passivate method is called before the instance enters the "passive" state. |
void |
remove()
PLJava invokes this method before it ends the life of the pooled object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsingProperties(ObjectPool pool) throws IOException
IOException
Method Detail |
---|
public void activate()
PooledObject
activate
in interface PooledObject
public void remove()
PooledObject
remove
in interface PooledObject
public void passivate()
PooledObject
passivate
in interface PooledObject
public boolean assignRowValues(ResultSet receiver, int currentRow) throws SQLException
ResultSetProvider
SingleRowWriter
writer instance that is used for capturing the data for the row.
assignRowValues
in interface ResultSetProvider
receiver
- Receiver of values for the given row.currentRow
- Row number. First call will have row number 0.
true
if a new row was provided, false
if not (end of data).
SQLException
public void close() throws SQLException
ResultSetProvider
close
in interface ResultSetProvider
SQLException
public static ResultSetProvider getProperties() throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |