Package overit.geocall.sql
Class Pools
java.lang.Object
overit.geocall.sql.Pools
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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddispose()static ConnectionPoolReturns theConnectionPoolby extracting it from the map accessing it by namestatic ConnectionPoolReturns theConnectionPoolby extracting it from the map accessing it by namestatic ConnectionPoolgetServicePool(String name) Returns the serviceConnectionPoolby extracting it from the map accessing it by name.Returns anIteratorover the key fields (the names)protected static voidremovePool(ConnectionPool<?> pool)
-
Constructor Details
-
Pools
public Pools()Main constructor
-
-
Method Details
-
getPool
Returns theConnectionPoolby extracting it from the map accessing it by name- Parameters:
name- The name of the ConnectionPool to extractservice- Boolean indicating if the ConnectionPool is the service one or not- Returns:
- The ConnectionPool
-
getServicePool
Returns the serviceConnectionPoolby extracting it from the map accessing it by name. If the name of the pool starts with "Service", that pool will be used for the service communication, for example for theStaticViewloading.- Parameters:
name- The name of the service ConnectionPool to extract- Returns:
- The service ConnectionPool
-
getPool
Returns theConnectionPoolby extracting it from the map accessing it by name- Parameters:
name- The name of the ConnectionPool to extract- Returns:
- The ConnectionPool
-
nameIterator
Returns anIteratorover the key fields (the names)- Returns:
- The Iterator over the collection of connection pools
-
removePool
-
dispose
public static void dispose()
-