org.oreodata.jdbcimpl
Class ConnectionPool
java.lang.Object
|
+--org.oreodata.jdbcimpl.ConnectionPool
- public class ConnectionPool
- extends java.lang.Object
A class for preallocating, recycling, and managing
Oreo´s JDBCConnection
connections (aka connection pool).
- Author:
- Alberto Molpeceres
- See Also:
JDBCConnection
Field Summary |
protected java.lang.String |
jdbcURL
|
protected java.lang.String |
password
|
protected java.lang.String |
userID
|
Constructor Summary |
ConnectionPool(java.lang.String jdbcURL,
java.lang.String userID,
java.lang.String password,
int minConnections,
int maxConnections,
boolean waitIfBusy)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jdbcURL
protected java.lang.String jdbcURL
userID
protected java.lang.String userID
password
protected java.lang.String password
ConnectionPool
public ConnectionPool(java.lang.String jdbcURL,
java.lang.String userID,
java.lang.String password,
int minConnections,
int maxConnections,
boolean waitIfBusy)
throws java.sql.SQLException
getConnection
public JDBCConnection getConnection()
throws java.sql.SQLException
java.sql.SQLException
release
public void release(JDBCConnection connection)
makeNewConnection
protected JDBCConnection makeNewConnection()
throws java.sql.SQLException
java.sql.SQLException
closeAllConnections
public void closeAllConnections()
getPoolInfo
public java.lang.String getPoolInfo()