public class ConnectionResetter extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
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.slf4j.Logger 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.
|
protected static final String MUTATOR_PREFIX
protected static boolean triggerResetException
protected ConnectionResetter(org.slf4j.Logger log,
String driverName)
log - debug information sent hereprotected void initialise(Connection connection)
connection - this will be used to get all the default valuesprotected boolean reset(Connection connection, String id)
connection - to be resetid - used in log messagesprotected static void setTriggerResetException(boolean triggerResetException)
triggerResetException - true it we should trigger a pretend exception.isTriggerResetException()Copyright © 2024. All rights reserved.