|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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.
| 字段摘要 | |
|---|---|
protected static String |
MUTATOR_PREFIX
We use this to guess if we are changing a property that will need resetting |
protected static boolean |
triggerResetException
|
| 构造方法摘要 | |
|---|---|
protected |
ConnectionResetter(org.apache.commons.logging.Log log,
String driverName)
Pass in the log to use |
| 方法摘要 | |
|---|---|
protected void |
initialise(Connection connection)
This gets called every time we make a Connection. |
protected boolean |
reset(Connection connection,
String id)
Reset this connection to its default values. |
protected static void |
setTriggerResetException(boolean triggerResetException)
Called by a unit test. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected static final String MUTATOR_PREFIX
protected static boolean triggerResetException
isTriggerResetException()| 构造方法详细信息 |
|---|
protected ConnectionResetter(org.apache.commons.logging.Log log,
String driverName)
log - debug information sent here| 方法详细信息 |
|---|
protected void initialise(Connection connection)
connection - this will be used to get all the default values
protected boolean reset(Connection connection,
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()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||