Class JDBCConnectionPool

    • Constructor Detail

      • JDBCConnectionPool

        public JDBCConnectionPool​(JDBCConnectionFactory factory,
                                  org.apache.commons.pool2.impl.GenericObjectPoolConfig cfg)
      • JDBCConnectionPool

        @Deprecated(since="ages",
                    forRemoval=true)
        public JDBCConnectionPool​(JDBCConnectionFactory factory,
                                  org.apache.commons.pool.impl.GenericObjectPool.Config cfg)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since ages - Database connection pool now uses version 2 of Apache Commons Pool, so please use JDBCConnectionPool(JDBCConnectionFactory, GenericObjectPoolConfig) This method converts GenericObjectPool.Config to corresponding GenericObjectPool.
    • Method Detail

      • setDumpStackOnConnectionError

        public void setDumpStackOnConnectionError​(boolean enable)
      • getNumPhysicalOpen

        public int getNumPhysicalOpen()
      • getMaxPhysicalOpen

        public int getMaxPhysicalOpen()
      • resetStats

        protected void resetStats()
      • cannotConnect

        public boolean cannotConnect()
      • isPoolClosed

        public boolean isPoolClosed()
      • borrowConnection

        public java.sql.Connection borrowConnection()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • returnConnection

        public void returnConnection​(java.sql.Connection conn)
      • invalidateConnection

        public void invalidateConnection​(java.sql.Connection conn)
      • close

        public final void close()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getNumActive

        public int getNumActive()
      • getMaxActive

        public int getMaxActive()
      • getNumIdle

        public int getNumIdle()
      • enableOracleStatementCaching

        public void enableOracleStatementCaching​(int cacheSize)
      • resetOracleStatementCaching

        public void resetOracleStatementCaching()
      • disableOracleStatementCaching

        public void disableOracleStatementCaching()