Code example for Hashtable

Methods: get, remove

0
 
      // 
      // Remove the pool from the Hashtable if we don'd have 
      // any active connections. 
      // 
      if ( ! pool.hasActiveConnections() ) m_poolTable.remove(name);
    } 
 
  } 
 
 
  /** 
   * Return the connection pool referenced by the name 
   * @param name 
   * 
   * @return <code>ConnectionPool</code> a reference to the ConnectionPool 
   * object stored in the Pool Table. If the named pool does not exist, return 
   * null 
   */ 
  public synchronized ConnectionPool getPool( String name )
  { 
    return (ConnectionPool) m_poolTable.get(name);
  } 
 
}