org.xerial.db.sql
Class NaiveConnectionPool
java.lang.Object
org.xerial.db.sql.NaiveConnectionPool
- All Implemented Interfaces:
- ConnectionPool
public class NaiveConnectionPool
- extends Object
- implements ConnectionPool
NaiveConnectionPool creates a connection every time when
a query is requested, then closes the connection affte its ResultSet is
consumed.
- Author:
- leo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NaiveConnectionPool
public NaiveConnectionPool(String driver,
String address)
closeAll
public void closeAll()
throws DBException
- Specified by:
closeAll in interface ConnectionPool
- Throws:
DBException
getConnection
public Connection getConnection()
throws DBException
- Specified by:
getConnection in interface ConnectionPool
- Throws:
DBException
returnConnection
public void returnConnection(Connection leasedConnection)
- Specified by:
returnConnection in interface ConnectionPool

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.