public class ConnectionFactory extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ConnectionFactory.ConnectionTracker |
protected static class |
ConnectionFactory.PoolManager
This class abstracts from a connection pool, such that a static reference
to an instance of this class will describe the entire body of connections.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
checkConnections(long currentTime) |
static void |
flush() |
static WrappedConnection |
getConnection(String jdbcUrl,
String jdbcDriver,
String database,
String userName,
String password,
int maxDBConnections,
boolean debug) |
protected static WrappedConnection |
getConnectionWithRetries(ConnectionPool cp) |
static void |
releaseAll() |
static void |
releaseConnection(WrappedConnection c) |
public static final String _rcsid
public static WrappedConnection getConnection(String jdbcUrl, String jdbcDriver, String database, String userName, String password, int maxDBConnections, boolean debug) throws ManifoldCFException
ManifoldCFException
public static void releaseConnection(WrappedConnection c) throws ManifoldCFException
ManifoldCFException
public static void flush()
public static void releaseAll()
protected static WrappedConnection getConnectionWithRetries(ConnectionPool cp) throws SQLException, InterruptedException
SQLException
InterruptedException
protected static void checkConnections(long currentTime)