| java.lang.Object org.logicalcobwebs.proxool.ConnectionResetter
ConnectionResetter | public class ConnectionResetter (Code) | | 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.
version: $Revision: 1.16 $, $Date: 2006/01/18 14:40:01 $ author: Bill Horsman (bill@logicalcobwebs.co.uk) author: $Author: billhorsman $ (current maintainer) since: Proxool 0.5 |
MUTATOR_PREFIX | final protected static String MUTATOR_PREFIX(Code) | | We use this to guess if we are changing a property that will need resetting
|
ConnectionResetter | protected ConnectionResetter(Log log, String driverName)(Code) | | Pass in the log to use
Parameters: log - debug information sent here |
initialise | protected void initialise(Connection connection)(Code) | | This gets called every time we make a Connection. Not that often
really, so it's ok to synchronize a bit.
Parameters: connection - this will be used to get all the default values |
reset | protected boolean reset(Connection connection, String id)(Code) | | Reset this connection to its default values. If anything goes wrong, it is logged
as a warning or info but it silently continues.
Parameters: connection - to be reset Parameters: id - used in log messages true if the reset was error free, or false if it encountered errors. (in which case it should probably not be reused) |
setTriggerResetException | protected static void setTriggerResetException(boolean triggerResetException)(Code) | | Called by a unit test.
Parameters: triggerResetException - true it we should trigger a pretend exception. See Also: ConnectionResetter.isTriggerResetException() |
|
|