public class ConnectionFactory
extends java.lang.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 | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkConnections(long currentTime) |
static void |
flush() |
static WrappedConnection |
getConnection(java.lang.String jdbcUrl,
java.lang.String jdbcDriver,
java.lang.String database,
java.lang.String userName,
java.lang.String password,
int maxDBConnections,
boolean debug) |
protected static WrappedConnection |
getConnectionWithRetries(ConnectionPool cp) |
static void |
releaseAll() |
static void |
releaseConnection(WrappedConnection c) |
public static final java.lang.String _rcsid
public static WrappedConnection getConnection(java.lang.String jdbcUrl, java.lang.String jdbcDriver, java.lang.String database, java.lang.String userName, java.lang.String password, int maxDBConnections, boolean debug) throws ManifoldCFException
ManifoldCFExceptionpublic static void releaseConnection(WrappedConnection c) throws ManifoldCFException
ManifoldCFExceptionpublic static void flush()
public static void releaseAll()
protected static WrappedConnection getConnectionWithRetries(ConnectionPool cp) throws java.sql.SQLException, java.lang.InterruptedException
java.sql.SQLExceptionjava.lang.InterruptedExceptionprotected static void checkConnections(long currentTime)