Code example for PooledConnection

Methods: close

0
    } 
 
    private void closeConnection(PooledConnection pc) {
 
        try { 
            pc.close();
        } 
        catch (SQLException e) {
            log("Error while closing database connection: " + e.toString());
        } 
    } 
 
    /** 
     * Close the connection, and don't add it back to the pool. 
     *  
     * @param pc 
     *            the pooled connection 
     */ 
    synchronized void disposeConnection(PooledConnection pc) {
 
Experience pair programming with AI  Get Codota for Java