Interface PooledObject


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

    Modifier and Type
    Method
    Description
    void
    The activate method is called when the instance is activated from its "passive" state.
    void
    The passivate method is called before the instance enters the "passive" state.
    void
    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.