public class DBPool extends Object
Constructor and Description |
---|
DBPool() |
Modifier and Type | Method and Description |
---|---|
static void |
AddDBConfig(DBConfig db)
Add DBConfig to the available configs.
|
void |
closeConnections() |
static Connection |
GetConnection(String db)
Gets a pooled database connection from the available DBConfigs with a
matching db indentifier.
|
static DBConfig |
GetDBConfig(String dbID)
Gets the DBConfig with the matching db identifier.
|
Collection<DBConfig> |
getDBConfigs() |
static String |
GetDBUserName(String dbName) |
Hashtable |
getDS() |
static DBPool |
GetPool()
If the DBPool object has not been instanciated then it is instanciated and returned.
|
void |
resetConnections() |
public void resetConnections()
public Collection<DBConfig> getDBConfigs()
public static DBPool GetPool()
public static Connection GetConnection(String db) throws SQLException, DBPoolException
db
- SQLException
DBPoolException
public static void AddDBConfig(DBConfig db)
db
- public static DBConfig GetDBConfig(String dbID)
dbID
- public Hashtable getDS()
public void closeConnections() throws SQLException
SQLException
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.