Interface PooledConnectionManager

  • All Known Implementing Classes:
    CPDSConnectionFactory, KeyedCPDSConnectionFactory

    interface PooledConnectionManager
    Methods to manage PoolableConnections and the connection pools that source them.
    Since:
    1.3
    Version:
    $Revision: 907288 $ $Date: 2010-02-06 14:42:58 -0500 (Sat, 06 Feb 2010) $
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void closePool​(java.lang.String username)
      Closes the connection pool associated with the given user.
      void invalidate​(javax.sql.PooledConnection pc)
      Close the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters.
      void setPassword​(java.lang.String password)
      Sets the databsase password used when creating connections.
    • Method Detail

      • invalidate

        void invalidate​(javax.sql.PooledConnection pc)
                 throws java.sql.SQLException
        Close the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters.
        Parameters:
        pc - PooledConnection to be invalidated
        Throws:
        java.sql.SQLException - if an SQL error occurs closing the connection
      • setPassword

        void setPassword​(java.lang.String password)
        Sets the databsase password used when creating connections.
        Parameters:
        password - password used when authenticating to the database
      • closePool

        void closePool​(java.lang.String username)
                throws java.sql.SQLException
        Closes the connection pool associated with the given user.
        Parameters:
        username - user name
        Throws:
        java.sql.SQLException - if an error occurs closing idle connections in the pool