com.sun.ebxml.registry.persistence.rdb
Class ConnectionPool
java.lang.Object
com.sun.ebxml.registry.persistence.rdb.ConnectionPool
- public class ConnectionPool
- extends java.lang.Object
Constructor Summary |
ConnectionPool(java.lang.String name,
java.lang.String URL,
java.lang.String user,
java.lang.String password,
int maxConns,
int initConns,
int timeOut)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionPool
public ConnectionPool(java.lang.String name,
java.lang.String URL,
java.lang.String user,
java.lang.String password,
int maxConns,
int initConns,
int timeOut)
- Parameters:
timeOut
- is the time in seconds after this has been elasped but the
connection cannot be returned, getConnection() will return SQLException
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
freeConnection
public void freeConnection(java.sql.Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
release
public void release()
throws java.sql.SQLException
- Close all connections in the pool
- Throws:
java.sql.SQLException