|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logicalcobwebs.proxool.ConnectionResetter
public class ConnectionResetter
Responsible for resetting a Connection to its default state when it is returned to the pool. It must be initialised by the first Connection that is made (for each pool) so that we don't make any assumptions about what the default values are.
Field Summary | |
---|---|
protected static java.lang.String |
MUTATOR_PREFIX
We use this to guess if we are changing a property that will need resetting |
protected static boolean |
triggerResetException
|
Constructor Summary | |
---|---|
protected |
ConnectionResetter(org.apache.commons.logging.Log log,
java.lang.String driverName)
Pass in the log to use |
Method Summary | |
---|---|
protected void |
initialise(java.sql.Connection connection)
This gets called every time we make a Connection. |
protected boolean |
reset(java.sql.Connection connection,
java.lang.String id)
Reset this connection to its default values. |
protected static void |
setTriggerResetException(boolean triggerResetException)
Called by a unit test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String MUTATOR_PREFIX
protected static boolean triggerResetException
isTriggerResetException()
Constructor Detail |
---|
protected ConnectionResetter(org.apache.commons.logging.Log log, java.lang.String driverName)
log
- debug information sent hereMethod Detail |
---|
protected void initialise(java.sql.Connection connection)
connection
- this will be used to get all the default valuesprotected boolean reset(java.sql.Connection connection, java.lang.String id)
connection
- to be resetid
- used in log messages
protected static void setTriggerResetException(boolean triggerResetException)
triggerResetException
- true it we should trigger a pretend exception.isTriggerResetException()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |