Class DBPools

java.lang.Object
overit.geocall.sql.DBPools

public class DBPools extends Object
This class implements the object that contains the HashMap of the ConnectionPool of the application. It exposes the methods to set the pools and extract them, in addition to the iterator on the keys that allows to iterate over the pool names.
  • Field Details

  • Constructor Details

    • DBPools

      public DBPools()
  • Method Details

    • instance

      public static DBPools instance()
    • nameIterator

      public Iterator<String> nameIterator()
      Returns an Iterator over the key fields (the names)
      Returns:
      The Iterator over the collection of connection pools
    • getPool

      public ConnectionPool getPool(String name, boolean service)
    • removePool

      protected void removePool(ConnectionPool pool)
    • dispose

      public void dispose()
    • giveUp

      protected static boolean giveUp(int wait, long start)
    • getDBView

      public static DBView getDBView()
      This method return the DBView that contains all the attributes of each pool in the pool list.
      The attributes of each pool that are insert in the DBView are: NAME, DRIVER, URL, USER, PASSWORD, NUMBER, PARAMETERS.
      Returns:
      The DBView that contains all the information of each pool in the pool list.