public boolean isValid(int timeout) throws SQLException { return isClosed(); }
public boolean isValid(int timeout) throws SQLException { return !isClosed(); }
public boolean isValid(int timeout) throws SQLException { return isClosed(); }
/** * Verifies that the connection is closed. * @throws VerifyFailedException if verification fails */ public void verifyConnectionClosed() { try { if(!mockFactory.getMockConnection().isClosed()) { throw new VerifyFailedException("Connection not closed."); } } catch(SQLException exc) { throw new NestedApplicationException(exc); } }
/** * Verifies that the connection is closed. * @throws VerifyFailedException if verification fails */ public void verifyConnectionClosed() { try { if(!mockFactory.getMockConnection().isClosed()) { throw new VerifyFailedException("Connection not closed."); } } catch(SQLException exc) { throw new NestedApplicationException(exc); } }
/** * Verifies that the connection is closed. * @throws VerifyFailedException if verification fails */ public void verifyConnectionClosed() { try { if(!mockFactory.getMockConnection().isClosed()) { throw new VerifyFailedException("Connection not closed."); } } catch(SQLException exc) { throw new NestedApplicationException(exc); } }