|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhkl.zw.mkup.rattrap.db.DBPool
public class DBPool
a freely configurable connection pool for jdbc-capable databases
Method Summary | |
---|---|
void |
closePool()
closes all connections of this connection-pool and makes it ready for garbage collection |
void |
freeConnection(java.sql.Connection con)
alters the used-state of a pool-connection from used to free and makes the connection available for other users |
java.sql.Connection |
getConnection()
this method gets a reference to a free connection from the connectionpool |
static DBPool |
getPool()
this method returns a reference to the one and only database pool |
boolean |
isFree()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DBPool getPool()
public java.sql.Connection getConnection() throws java.sql.SQLException
java.sql.SQLException
- if there's no free exception leftpublic void freeConnection(java.sql.Connection con)
con
- the connection that shall be freedpublic void closePool()
public boolean isFree()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |