Invalidates the given connection.
Parameters: conn - connection to invalidate throws: SQLException - if the connection is not a PoolGuardConnectionWrapper or an error occurs invalidatingthe connection since: 1.2.2
isAccessToUnderlyingConnectionAllowed
public static synchronized boolean isAccessToUnderlyingConnectionAllowed()(Code)
Returns the value of the accessToUnderlyingConnectionAllowed property.
true if access to the underlying is allowed, false otherwise.
public synchronized void registerPool(String name, ObjectPool pool)(Code)
setAccessToUnderlyingConnectionAllowed
public static synchronized void setAccessToUnderlyingConnectionAllowed(boolean allow)(Code)
Sets the value of the accessToUnderlyingConnectionAllowed property.
It controls if the PoolGuard allows access to the underlying connection.
(Default: false)
Parameters: allow - Access to the underlying connection is granted when true.