org.biojava.utils
Class JDBCConnectionPool
java.lang.Object
org.biojava.utils.JDBCConnectionPool
- public class JDBCConnectionPool
- extends java.lang.Object
Really simple connection pool for JDBC databases
- Author:
- Thomas Down
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCConnectionPool
public JDBCConnectionPool(java.lang.String url,
java.lang.String user,
java.lang.String pass)
JDBCConnectionPool
public JDBCConnectionPool(java.lang.String url)
takeConnection
public java.sql.Connection takeConnection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
putConnection
public void putConnection(java.sql.Connection c)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
takeStatement
public java.sql.Statement takeStatement()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
putStatement
public void putStatement(java.sql.Statement st)
throws java.sql.SQLException
- Throws:
java.sql.SQLException