/** * Go through the connection pool and release any connections * that are not InUse; * */ public void freeUnused( ) { // Iterate over the entire pool closing the // JDBC Connections. Iterator i = m_pool.iterator(); while(i.hasNext()) { PooledConnection pcon = (PooledConnection) i.next(); // If the PooledConnection is not in use, close it if ( pcon.inUse() == false ) { if (DEBUG) { System.err.println("Closing JDBC Connection "); } pcon.close(); i.remove(); } } }
if ( pcon.inUse() == false ) { pcon.close(); } else
if ( pcon.inUse() == false )
/** * Go through the connection pool and release any connections * that are not InUse; * */ public void freeUnused( ) { // Iterate over the entire pool closing the // JDBC Connections. Iterator i = m_pool.iterator(); while(i.hasNext()) { PooledConnection pcon = (PooledConnection) i.next(); // If the PooledConnection is not in use, close it if ( pcon.inUse() == false ) { if (DEBUG) { System.err.println("Closing JDBC Connection "); } pcon.close(); i.remove(); } } }
/** * Go through the connection pool and release any connections * that are not InUse; * */ public void freeUnused( ) { // Iterate over the entire pool closing the // JDBC Connections. Iterator i = m_pool.iterator(); while(i.hasNext()) { PooledConnection pcon = (PooledConnection) i.next(); // If the PooledConnection is not in use, close it if ( pcon.inUse() == false ) { if (DEBUG) { System.err.println("Closing JDBC Connection "); } pcon.close(); i.remove(); } } }
/** * Go through the connection pool and release any connections * that are not InUse; * */ public void freeUnused( ) { // Iterate over the entire pool closing the // JDBC Connections. Iterator i = m_pool.iterator(); while(i.hasNext()) { PooledConnection pcon = (PooledConnection) i.next(); // If the PooledConnection is not in use, close it if ( pcon.inUse() == false ) { if (DEBUG) { System.err.println("Closing JDBC Connection "); } pcon.close(); i.remove(); } } }
if ( pcon.inUse() == false ) { pcon.close(); } else
if ( pcon.inUse() == false ) { pcon.close(); } else
if ( pcon.inUse() == false ) { pcon.close(); } else
if ( pcon.inUse() == false )
if ( pcon.inUse() == false )
if ( pcon.inUse() == false )