|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.io.DBConnectionPool
public class DBConnectionPool
class to manage a database connection pool. this is part of the combination of the object pool pattern an the singelton pattern.
Method Summary | |
---|---|
Connection |
acquireConnection(String driver,
String database,
Properties properties)
get an object from the object pool |
Connection |
acquireConnection(String driver,
String database,
String user,
String password)
get an object from the object pool |
static DBConnectionPool |
getInstance()
realize singelton pattern using double checked locking pattern. |
void |
releaseConnection(Connection con,
String driver,
String database,
Properties properties)
releases a connection back to the pool |
void |
releaseConnection(Connection con,
String driver,
String database,
String user,
String password)
releases a connection back to the pool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DBConnectionPool getInstance()
public Connection acquireConnection(String driver, String database, String user, String password) throws DBPoolException
DBPoolException
public Connection acquireConnection(String driver, String database, Properties properties) throws DBPoolException
DBPoolException
public void releaseConnection(Connection con, String driver, String database, String user, String password) throws DBPoolException
DBPoolException
public void releaseConnection(Connection con, String driver, String database, Properties properties) throws Exception
Exception
|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net