|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.rfid.data.db.SimplePostgresConnectionPool
public class SimplePostgresConnectionPool
A simple connection pool for connections to the database. When after getConnection is called, releaseConnection must be called when the user is done with the connection,or else the connection pool will leak
Method Summary | |
---|---|
SimplePostgresConnection |
getConnection()
returns a SimplePostgresConnection so that a query to the database can be made |
static SimplePostgresConnectionPool |
getInstance()
|
void |
releaseConnection(SimplePostgresConnection conn)
Return the specified connection to the connection pool. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public SimplePostgresConnection getConnection()
public void releaseConnection(SimplePostgresConnection conn)
conn
- public static SimplePostgresConnectionPool getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |