Interface PoolableConnectionMXBean

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clearCachedState()
      Clears the cached state.
      void clearWarnings()
      See Connection.clearWarnings().
      void close()
      Returns this instance to my containing pool.
      boolean getAutoCommit()
      See Connection.getAutoCommit().
      boolean getCacheState()
      Gets whether to cache properties.
      java.lang.String getCatalog()
      See Connection.getCatalog().
      int getHoldability()
      See Connection.getHoldability().
      java.lang.String getSchema()
      See Connection.getSchema().
      java.lang.String getToString()
      Gets the value of the Object.toString() method via a bean getter, so it can be read as a property via JMX.
      int getTransactionIsolation()
      See Connection.getTransactionIsolation().
      boolean isClosed()
      See Connection.isClosed().
      boolean isReadOnly()
      See Connection.isReadOnly().
      void reallyClose()
      Closes the underlying Connection.
      void setAutoCommit​(boolean autoCommit)
      See Connection.setAutoCommit(boolean).
      void setCacheState​(boolean cacheState)
      Sets whether to cache properties.
      void setCatalog​(java.lang.String catalog)
      See Connection.setCatalog(String).
      void setHoldability​(int holdability)
      See Connection.setHoldability(int).
      void setReadOnly​(boolean readOnly)
      See Connection.setReadOnly(boolean).
      void setSchema​(java.lang.String schema)
      See Connection.setSchema(String).
      void setTransactionIsolation​(int level)
      See Connection.setTransactionIsolation(int).
    • Method Detail

      • clearCachedState

        void clearCachedState()
        Clears the cached state. Call when you know that the underlying connection may have been accessed directly.
      • clearWarnings

        void clearWarnings()
                    throws java.sql.SQLException
        See Connection.clearWarnings().
        Throws:
        java.sql.SQLException - See Connection.clearWarnings().
      • close

        void close()
            throws java.sql.SQLException
        Returns this instance to my containing pool.
        Throws:
        java.sql.SQLException - Throw if this instance cannot be returned.
      • getAutoCommit

        boolean getAutoCommit()
                       throws java.sql.SQLException
        See Connection.getAutoCommit().
        Returns:
        See Connection.getAutoCommit().
        Throws:
        java.sql.SQLException - See Connection.getAutoCommit().
      • getCacheState

        boolean getCacheState()
        Gets whether to cache properties. The cached properties are:
        • auto-commit
        • catalog
        • schema
        • read-only
        Returns:
        The value for the state caching flag.
      • getCatalog

        java.lang.String getCatalog()
                             throws java.sql.SQLException
        See Connection.getCatalog().
        Returns:
        See Connection.getCatalog().
        Throws:
        java.sql.SQLException - See Connection.getCatalog().
      • getHoldability

        int getHoldability()
                    throws java.sql.SQLException
        See Connection.getHoldability().
        Returns:
        See Connection.getHoldability().
        Throws:
        java.sql.SQLException - See Connection.getHoldability().
      • getSchema

        java.lang.String getSchema()
                            throws java.sql.SQLException
        See Connection.getSchema().
        Returns:
        See Connection.getSchema().
        Throws:
        java.sql.SQLException - See Connection.getSchema().
      • getToString

        java.lang.String getToString()
        Gets the value of the Object.toString() method via a bean getter, so it can be read as a property via JMX.
        Returns:
        the value of the Object.toString().
      • getTransactionIsolation

        int getTransactionIsolation()
                             throws java.sql.SQLException
        See Connection.getTransactionIsolation().
        Returns:
        See Connection.getTransactionIsolation().
        Throws:
        java.sql.SQLException - See Connection.getTransactionIsolation().
      • isClosed

        boolean isClosed()
                  throws java.sql.SQLException
        See Connection.isClosed().
        Returns:
        See Connection.isClosed().
        Throws:
        java.sql.SQLException - See Connection.isClosed().
      • isReadOnly

        boolean isReadOnly()
                    throws java.sql.SQLException
        See Connection.isReadOnly().
        Returns:
        See Connection.isReadOnly().
        Throws:
        java.sql.SQLException - See Connection.isReadOnly().
      • reallyClose

        void reallyClose()
                  throws java.sql.SQLException
        Closes the underlying Connection.
        Throws:
        java.sql.SQLException - Thrown if the connection can be closed.
      • setAutoCommit

        void setAutoCommit​(boolean autoCommit)
                    throws java.sql.SQLException
        See Connection.setAutoCommit(boolean).
        Parameters:
        autoCommit - See Connection.setAutoCommit(boolean).
        Throws:
        java.sql.SQLException - See Connection.setAutoCommit(boolean).
      • setCacheState

        void setCacheState​(boolean cacheState)
        Sets whether to cache properties. The cached properties are:
        • auto-commit
        • catalog
        • schema
        • read-only
        Parameters:
        cacheState - The new value for the state caching flag
      • setCatalog

        void setCatalog​(java.lang.String catalog)
                 throws java.sql.SQLException
        See Connection.setCatalog(String).
        Parameters:
        catalog - See Connection.setCatalog(String).
        Throws:
        java.sql.SQLException - See Connection.setCatalog(String).
      • setHoldability

        void setHoldability​(int holdability)
                     throws java.sql.SQLException
        See Connection.setHoldability(int).
        Parameters:
        holdability - Connection.setHoldability(int).
        Throws:
        java.sql.SQLException - See Connection.setHoldability(int).
      • setReadOnly

        void setReadOnly​(boolean readOnly)
                  throws java.sql.SQLException
        See Connection.setReadOnly(boolean).
        Parameters:
        readOnly - See Connection.setReadOnly(boolean).
        Throws:
        java.sql.SQLException - See Connection.setReadOnly(boolean).
      • setSchema

        void setSchema​(java.lang.String schema)
                throws java.sql.SQLException
        See Connection.setSchema(String).
        Parameters:
        schema - See Connection.setSchema(String).
        Throws:
        java.sql.SQLException - See Connection.setSchema(String).
      • setTransactionIsolation

        void setTransactionIsolation​(int level)
                              throws java.sql.SQLException
        See Connection.setTransactionIsolation(int).
        Parameters:
        level - See Connection.setTransactionIsolation(int).
        Throws:
        java.sql.SQLException - See Connection.setTransactionIsolation(int).