Interface PooledObject


public interface PooledObject
Interface for objects that are pooled and reused.
Author:
Thomas Hallgren
  • Method Summary

    Modifier and Type Method Description
    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 Details

    • activate

      void activate() throws SQLException
      The activate method is called when the instance is activated from its "passive" state.
      Throws:
      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 SQLException
      The passivate method is called before the instance enters the "passive" state.
      Throws:
      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.