|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetbattle.database.ConnectionPool
public class ConnectionPool
| Constructor Summary | |
|---|---|
ConnectionPool(java.lang.String url,
int size)
Creates a new ConnectionPool that connects to the given url. |
|
| Method Summary | |
|---|---|
void |
close()
Close all of the Connections in this pool. |
protected void |
finalize()
Finalise this pool. |
java.sql.Connection |
getConnection()
Get a Connection object for exclusive use. |
void |
returnConnection(java.sql.Connection conn)
Return a Connection object that was obtained with getConnection() to the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionPool(java.lang.String url,
int size)
throws java.sql.SQLException
url - the url to connection tosize - the initial size of the pool
java.sql.SQLException - if a connection could not be established| Method Detail |
|---|
public void close()
protected void finalize()
finalize in class java.lang.Objectpublic java.sql.Connection getConnection()
public void returnConnection(java.sql.Connection conn)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||