org.postgresql.pljava
Interface PooledObject


public interface PooledObject

Interface for objects that are pooled and reused.


Method Summary
 void activate()
          The activate method is called when the instance is activated from its "passive" state.
 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.
 

Method Detail

activate

void activate()
              throws java.sql.SQLException
The activate method is called when the instance is activated from its "passive" state.

Throws:
java.sql.SQLException - if something goes wrong with the activation. When this happens, a call will be issued to remove() and the object will no longer be part of the pool.

passivate

void passivate()
               throws java.sql.SQLException
The passivate method is called before the instance enters the "passive" state.

Throws:
java.sql.SQLException - if something goes wrong with the passivation. When this happens, a call will be issued to remove() and the object will no longer be part of the pool.

remove

void remove()
PLJava invokes this method before it ends the life of the pooled object.



Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT