@Override public void clearWarnings() throws SQLException { rawStatement.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { rawStatement.clearWarnings(); }
/** {@inheritDoc} */ @Override public void clearWarnings() throws SQLException { delegate.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { ps.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { ps.clearWarnings(); }
/** * Standard Statement method call. */ public void clearWarnings() throws SQLException { pstmt.clearWarnings(); }
/** * {@inheritDoc} * */ @Override public void clearWarnings() throws SQLException { this.statement.clearWarnings(); }
/** * Standard Statement method call. */ public void clearWarnings() throws SQLException { pstmt.clearWarnings(); }
public void clearWarnings() throws SQLException { delegate.clearWarnings(); }
/** * Facade for PreparedStatement */ public void clearWarnings() throws SQLException { ps.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { checkState(); realPreparedStatement.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { checkState(); realPreparedStatement.clearWarnings(); }
public void clearWarnings() throws SQLException { try { original.clearWarnings(); } catch (final SQLException e) { throw wrapException(e); } }
public void clearWarnings() throws SQLException { try { original.clearWarnings(); } catch (final SQLException e) { throw wrapException(e); } }
public void clearWarnings() throws SQLException { //preInvoke(); try { ps.clearWarnings(); } catch (SQLException e) { catchInvoke(e); } }
@Override public void clearWarnings() throws SQLException { checkClosed(); delegate.clearWarnings(); }
public void close() throws SQLException { ps.clearWarnings(); ps.clearBatch(); ps.clearParameters(); cw.returnStatementToCache(this); }
public void clearWarnings() throws SQLException { Profiler profiler = _profilerPoint.start(); try { _preparedStatement.clearWarnings(); } finally { profiler.finish(); } }
@Test public void testCachedStatementPretendsToClose() throws SQLException { CacheKey key = new CacheKey("SELECT * FROM DUAL"); PreparedStatement proxy = JdbcProxyFactory.INSTANCE.getProxyPreparedStatement(connection, stmt, key); proxy.close(); assertTrue(proxy.isClosed()); verify(stmt, never()).close(); verify(stmt).clearParameters(); verify(stmt).clearWarnings(); verify(stmt).clearBatch(); verify(connection).putCachedStatement(key, stmt); }
@Test public void testCachedStatementPretendsToClose() throws SQLException { CacheKey key = new CacheKey("SELECT * FROM DUAL"); PreparedStatement proxy = JdbcProxyFactory.INSTANCE.getProxyPreparedStatement(connection, stmt, key); proxy.close(); assertTrue(proxy.isClosed()); verify(stmt, never()).close(); verify(stmt).clearParameters(); verify(stmt).clearWarnings(); verify(stmt).clearBatch(); verify(connection).putCachedStatement(key, stmt); }