|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbforms.conprovider.AbstractConnectionProvider
org.dbforms.conprovider.JakartaConnectionProvider
public class JakartaConnectionProvider
Connection provider for Apache Jakarta commons-dbcp.
See http://jakarta.apache.org/commons/dbcp.html for further
informations.
| Field Summary | |
|---|---|
protected static String |
CP_PROPS_MAX_ACTIVE
the maximum number of active connections that can be allocated from this pool at the same time, or zero for no limit. |
protected static String |
CP_PROPS_MAX_IDLE
The maximum number of active connections that can remain idle in the pool, without extra ones being released, or zero for no limit. |
protected static String |
CP_PROPS_MAX_WAIT
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely. |
protected static String |
CP_PROPS_USE_LOG
log the dataSource object statements using log4j category class |
protected static String |
CP_PROPS_VALIDATION_QUERY
The SQL query that will be used to validate connections from this pool before returning them to the caller. |
| Constructor Summary | |
|---|---|
JakartaConnectionProvider()
Default constructor. |
|
| Method Summary | |
|---|---|
protected Connection |
getConnection()
Get a JDBC Connection |
protected void |
init()
Initialize the Jakarta Commons connection pool. |
| Methods inherited from class org.dbforms.conprovider.AbstractConnectionProvider |
|---|
getConnection, getLastToken, getPrefs, setPrefs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String CP_PROPS_VALIDATION_QUERY
protected static final String CP_PROPS_MAX_ACTIVE
protected static final String CP_PROPS_MAX_IDLE
protected static final String CP_PROPS_MAX_WAIT
protected static final String CP_PROPS_USE_LOG
| Constructor Detail |
|---|
public JakartaConnectionProvider()
throws Exception
Exception - Description of the Exception
Exception - because of the throws Exception clause of
the init method.| Method Detail |
|---|
protected Connection getConnection()
throws SQLException
getConnection in class AbstractConnectionProviderSQLException - Description of the Exception
protected void init()
throws Exception
init in class AbstractConnectionProviderException - if any error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||