Package overit.geocall.sql
Class DumbConnectionPool
-
Field Summary
Fields inherited from class overit.geocall.sql.ConnectionPool
_dbom, _dbSetupStatments, _maxQueryRows, _name, _ph, _qh, cross, encryptionKey, TYPE_DATASOURCE, TYPE_ELASTIC, TYPE_STANDARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String activity) Extracts a Connection from the poolReturns the informations about the connections of the poolintlocked()Returns the number of locked connections, i.e. the connections that are currently used by the applicationvoidReleases a Connection previously extracted withgetConnection()intsize()Returns the size of the ConnectionPoolMethods inherited from class overit.geocall.sql.ConnectionPool
dispose, getCross, getDBObjectMap, getDBType, getEncryptionKey, getHistory, getMaxQueryRows, getName, getParameters, getQueryHistory, setCross, setDBType, setEncryptionKey
-
Constructor Details
-
DumbConnectionPool
public DumbConnectionPool()
-
-
Method Details
-
getConnection
Description copied from class:ConnectionPoolExtracts a Connection from the pool- Specified by:
getConnectionin classConnectionPool<PooledConnection>- Parameters:
activity- The motivation / operation for which the extract request originates- Returns:
- The Connection extracted
- Throws:
SQLException- If there is an error during the extraction, anSQLExceptionwill be raised
-
releaseConnection
Description copied from class:ConnectionPoolReleases a Connection previously extracted withgetConnection()- Specified by:
releaseConnectionin classConnectionPool<PooledConnection>- Parameters:
pc- The Connection to release- Throws:
SQLException- If there is an error during the release, anSQLExceptionwill be raised
-
getConnectionInfo
Description copied from class:ConnectionPoolReturns the informations about the connections of the pool- Specified by:
getConnectionInfoin classConnectionPool<PooledConnection>- Returns:
- The List that contains the informations about the connections
-
locked
public int locked()Description copied from class:ConnectionPoolReturns the number of locked connections, i.e. the connections that are currently used by the application- Specified by:
lockedin classConnectionPool<PooledConnection>- Returns:
- The number of currently locked connections
-
size
public int size()Description copied from class:ConnectionPoolReturns the size of the ConnectionPool- Specified by:
sizein classConnectionPool<PooledConnection>- Returns:
- The number of Connection of this instance of ConnectionPool
-