org.apache.manifoldcf.core.database
Class ConnectionFactory
java.lang.Object
org.apache.manifoldcf.core.database.ConnectionFactory
public class ConnectionFactory
- extends java.lang.Object
This class creates a connection, and may at our discretion manage
a connection pool someday.
|
Field Summary |
static java.lang.String |
_rcsid
|
|
Method Summary |
protected static void |
checkConnections(long currentTime)
|
static java.sql.Connection |
getConnection(java.lang.String jdbcUrl,
java.lang.String jdbcDriver,
java.lang.String database,
java.lang.String userName,
java.lang.String password)
|
protected static java.sql.Connection |
getConnectionWithRetries(java.lang.String dbURL,
java.lang.String userName,
java.lang.String password)
|
static void |
releaseAll()
|
static void |
releaseConnection(java.sql.Connection c)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
getConnection
public static java.sql.Connection getConnection(java.lang.String jdbcUrl,
java.lang.String jdbcDriver,
java.lang.String database,
java.lang.String userName,
java.lang.String password)
throws ManifoldCFException
- Throws:
ManifoldCFException
releaseConnection
public static void releaseConnection(java.sql.Connection c)
throws ManifoldCFException
- Throws:
ManifoldCFException
releaseAll
public static void releaseAll()
getConnectionWithRetries
protected static java.sql.Connection getConnectionWithRetries(java.lang.String dbURL,
java.lang.String userName,
java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkConnections
protected static void checkConnections(long currentTime)