|
|
|
@ -45,6 +45,7 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
|
|
|
|
|
|
|
|
|
|
private boolean isClosed;
|
|
|
|
|
private boolean forceClose;
|
|
|
|
|
private boolean isTransactionIsolationDirty;
|
|
|
|
|
|
|
|
|
|
private final long creationTime;
|
|
|
|
|
private volatile long lastAccess;
|
|
|
|
@ -113,6 +114,16 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
|
|
|
|
|
scheduler.schedule(leakTask, leakDetectionThreshold);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public final boolean isTransactionIsolationDirty()
|
|
|
|
|
{
|
|
|
|
|
return isTransactionIsolationDirty;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void resetTransactionIsolationDirty()
|
|
|
|
|
{
|
|
|
|
|
isTransactionIsolationDirty = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public final boolean isBrokenConnection()
|
|
|
|
|
{
|
|
|
|
|
return forceClose;
|
|
|
|
@ -399,6 +410,22 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */
|
|
|
|
|
public void setTransactionIsolation(int level) throws SQLException
|
|
|
|
|
{
|
|
|
|
|
checkClosed();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
delegate.setTransactionIsolation(level);
|
|
|
|
|
isTransactionIsolationDirty = true;
|
|
|
|
|
}
|
|
|
|
|
catch (SQLException e)
|
|
|
|
|
{
|
|
|
|
|
checkException(e);
|
|
|
|
|
throw e;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// **********************************************************************
|
|
|
|
|
// Private Methods
|
|
|
|
|
// **********************************************************************
|
|
|
|
|