|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for connection pooling management classes.
| Method Summary | |
java.sql.Connection |
borrowConnection()
Borrows a connection from the pool. |
void |
close()
Closes the pool. |
ConnectionPoolInfo |
getPoolInfo()
Gets connection pool information. |
boolean |
isOpen()
Indicates if the pool is open. |
void |
open(java.lang.String anUrl,
java.lang.String anUser,
java.lang.String aPassword)
Opens the pool. |
void |
open(java.lang.String aDriverClass,
java.lang.String anUrl,
java.lang.String anUser,
java.lang.String aPassword)
Opens the pool. |
void |
returnConnection(java.sql.Connection aConnection)
Returns a connection to the pool. |
| Method Detail |
public void open(java.lang.String anUrl,
java.lang.String anUser,
java.lang.String aPassword)
throws java.sql.SQLException
anUrl - A database url of the form jdbc:subprotocol:subname.anUser - The database user on whose behalf the connections will be made.aPassword - The user's password.
java.sql.SQLException
public void open(java.lang.String aDriverClass,
java.lang.String anUrl,
java.lang.String anUser,
java.lang.String aPassword)
throws java.sql.SQLException
aDriverClass - Fully qualified name for the JDBC driver.anUrl - A database url of the form jdbc:subprotocol:subname.anUser - The database user on whose behalf the connections will be made.aPassword - The user's password.
java.sql.SQLException
public java.sql.Connection borrowConnection()
throws java.sql.SQLException
java.sql.SQLException
public void returnConnection(java.sql.Connection aConnection)
throws java.sql.SQLException
aConnection - A connection previously borrowed from the database.
java.sql.SQLException
public void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isOpen()
true if the pool is open; false otherwise.public ConnectionPoolInfo getPoolInfo()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||