|
||||||||||
| 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.ProtomatterConnectionProvider
public class ProtomatterConnectionProvider
Connection provider for Protomatter Connection pool.
See http://protomatter.sourceforge.net/ for further
informations.
| Field Summary | |
|---|---|
protected static String |
CP_PROPS_CREATEWAITTIME
the time (in ms) to sleep between pool object creates (default is 0). |
protected static String |
CP_PROPS_GROWBLOCK
the grow size (default is 1). |
protected static String |
CP_PROPS_INITIALSIZE
the initial pool size (default is 0) |
protected static String |
CP_PROPS_MAIDTHREADCHECKINTERVAL
this is the number of seconds between attempts by the maid thread (if present) to find idle connections. |
protected static String |
CP_PROPS_MAXCONNECTIONIDLETIME
If this property is present, and the pool.maidThreadCheckInterval property is also present, then
a thread will be created that looks for connections that have been idle
for more than pool.maxConnectionIdleTime seconds. |
protected static String |
CP_PROPS_MAXSIZE
the max pool size (default is -1). |
protected static String |
CP_PROPS_VALIDITYCHECKSTATEMENT
A SQL statement that is guaranteed to return at least 1 row. |
| Constructor Summary | |
|---|---|
ProtomatterConnectionProvider()
Default constructor. |
|
| Method Summary | |
|---|---|
protected Connection |
getConnection()
Get a JDBC Connection |
protected void |
init()
Initialize the Protomatter 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_INITIALSIZE
protected static final String CP_PROPS_MAXSIZE
protected static final String CP_PROPS_GROWBLOCK
protected static final String CP_PROPS_CREATEWAITTIME
protected static final String CP_PROPS_VALIDITYCHECKSTATEMENT
protected static final String CP_PROPS_MAXCONNECTIONIDLETIME
pool.maidThreadCheckInterval property is also present, then
a thread will be created that looks for connections that have been idle
for more than pool.maxConnectionIdleTime seconds. When this
thread finds them, it closed the connection and logs a warning with a
stack trace of when the connection was checked out of the pool. This is
primarily here as a debugging aid for finding places where connections
are not getting close, and should not be used in a production
environment
protected static final String CP_PROPS_MAIDTHREADCHECKINTERVAL
| Constructor Detail |
|---|
public ProtomatterConnectionProvider()
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 | |||||||||