|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.c5corp.c5utm.UpdateConnectionPool
public class UpdateConnectionPool
Provides/manages a pool of java.sql.Connection objects capable of updating the database
| Method Summary | |
|---|---|
void |
finalize()
|
void |
freeConnection(java.sql.Connection con)
returns a connection back to the pool |
java.sql.Connection |
getConnection()
Returns a connection from the connection pool |
static UpdateConnectionPool |
getInstance()
Gets an instance of ConnectionPool - which is a singleton object containing Connections. |
static UpdateConnectionPool |
getInstance(int poolSize)
Gets an instance of ConnectionPool - which is a singleton object containing Connections. |
int |
getPoolSize()
Returns the size of the connection pool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static UpdateConnectionPool getInstance()
getPoolSize()public static UpdateConnectionPool getInstance(int poolSize)
poolSize - the size of the desired pool
getPoolSize()public int getPoolSize()
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - if the pool is emptypublic void freeConnection(java.sql.Connection con)
con - the connection to return to the poolpublic void finalize()
finalize in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||