|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ConnectionPool is a generic interface for configuring and providing access to JDBC connections. All times are specified in seconds.
| Method Summary | |
boolean |
getAutoCommit()
|
boolean |
getCacheStatements()
Statement Cache |
int |
getCheckoutTimeout()
Max number of seconds a connection can be checked out from the pool. |
java.lang.String |
getDriver()
Underlying JDBC driver class name. |
int |
getIdleTimeout()
Max number of seconds a connection can sit unused before it is closed. |
int |
getMaxCheckout()
Max number of times a particular connection can be used before it is closed. |
int |
getMaxConnections()
Max allowable number of open connections. |
java.lang.String |
getPassword()
Password used to connect to the database. |
java.lang.String |
getPooledUrl()
If the connection pool exposes the connections through a "virtual" driver, this read-only property will provide the name. |
java.lang.String |
getPoolName()
Name of the pool. |
boolean |
getTracing()
|
java.lang.String |
getUrl()
JDBC URL to the database. |
java.lang.String |
getUser()
Username used to connect to the database. |
java.sql.Connection |
obtainConnection()
Obtains a connection from the pool. |
void |
postInit()
|
void |
releaseConnection(java.sql.Connection c)
Releases a connection. |
void |
setAutoCommit(boolean c)
|
void |
setCacheStatements(boolean cache)
Statement Cache |
void |
setCheckoutTimeout(int i)
Max number of seconds a connection can be checked out from the pool. |
void |
setDriver(java.lang.String driver)
Underlying JDBC driver class name. |
void |
setIdleTimeout(int i)
Max number of seconds a connection can sit unused before it is closed. |
void |
setMaxCheckout(int i)
Max number of times a particular connection can be used before it is closed. |
void |
setMaxConnections(int i)
Max allowable number of open connections. |
void |
setPassword(java.lang.String password)
Password used to connect to the database. |
void |
setPoolName(java.lang.String name)
Name of the pool. |
void |
setTracing(boolean flag)
|
void |
setUrl(java.lang.String url)
JDBC URL to the database. |
void |
setUser(java.lang.String user)
Username used to connect to the database. |
| Method Detail |
public int getMaxConnections()
public void setMaxConnections(int i)
public void setIdleTimeout(int i)
public int getIdleTimeout()
public int getCheckoutTimeout()
public void setCheckoutTimeout(int i)
public int getMaxCheckout()
public void setMaxCheckout(int i)
public void setCacheStatements(boolean cache)
public boolean getCacheStatements()
public java.lang.String getPoolName()
public void setPoolName(java.lang.String name)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public void setDriver(java.lang.String driver)
public java.lang.String getDriver()
public void setUser(java.lang.String user)
public java.lang.String getUser()
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public boolean getAutoCommit()
public void setAutoCommit(boolean c)
public java.lang.String getPooledUrl()
public void postInit()
throws java.sql.SQLException,
EncapsulatedException
public java.sql.Connection obtainConnection()
throws java.sql.SQLException
public void releaseConnection(java.sql.Connection c)
public boolean getTracing()
public void setTracing(boolean flag)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||