Package org.cdlib.mrt.db
Class DBConnectionPool
java.lang.Object
org.cdlib.mrt.db.DBConnectionPool
Database Connection Pool explicitly set up to run with BoneCP
- Author:
- dloy
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DBConnectionPool
(String url, String user, String password) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getConnection
(boolean autoCommit) static DBConnectionPool
getDBConnectionPool
(String url, String user, String password) void
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
connectionPool
protected com.jolbox.bonecp.BoneCP connectionPool
-
-
Constructor Details
-
DBConnectionPool
- Throws:
TException
-
-
Method Details
-
getDBConnectionPool
public static DBConnectionPool getDBConnectionPool(String url, String user, String password) throws TException - Throws:
TException
-
closeConnections
public void closeConnections() -
getConnection
- Throws:
SQLException
-
getConnection
- Throws:
SQLException
-
trace
-