Class ConnectionFactory
- java.lang.Object
-
- org.apache.manifoldcf.core.database.ConnectionFactory
-
public class ConnectionFactory extends java.lang.ObjectThis class creates a connection, and may at our discretion manage a connection pool someday.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classConnectionFactory.ConnectionTrackerprotected static classConnectionFactory.PoolManagerThis 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
Fields Modifier and Type Field Description static java.lang.String_rcsid
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidcheckConnections(long currentTime)static voidflush()static WrappedConnectiongetConnection(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 WrappedConnectiongetConnectionWithRetries(ConnectionPool cp)static voidreleaseAll()static voidreleaseConnection(WrappedConnection c)
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConnection
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
- Throws:
ManifoldCFException
-
releaseConnection
public static void releaseConnection(WrappedConnection c) throws ManifoldCFException
- Throws:
ManifoldCFException
-
flush
public static void flush()
-
releaseAll
public static void releaseAll()
-
getConnectionWithRetries
protected static WrappedConnection getConnectionWithRetries(ConnectionPool cp) throws java.sql.SQLException, java.lang.InterruptedException
- Throws:
java.sql.SQLExceptionjava.lang.InterruptedException
-
checkConnections
protected static void checkConnections(long currentTime)
-
-