org.apache.manifoldcf.core.database
Class ConnectionFactory

java.lang.Object
  extended by 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.


Nested Class Summary
protected static class ConnectionFactory.ConnectionCloseThread
           
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.
 
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
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values
Method Detail

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)