@Override public void execute(final ResultSet resultSet) throws SQLException { resultSet.clearWarnings(); } });
@Override public void clearWarnings() throws SQLException { delegate.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { rs.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { try { rs.clearWarnings(); } catch (Throwable t) { throw checkException(t); } }
@Override protected void streamData(ResultSet rs) throws SQLException, IOException { if (ex) { throw new IOException(); } else { rs.clearWarnings(); } } };
@Override public void resultSet_clearWarnings(ResultSetProxy rs) throws SQLException { if (this.pos < filterSize) { nextFilter() .resultSet_clearWarnings(this, rs); return; } rs.getResultSetRaw() .clearWarnings(); }
@Test public void testAbstractLobStreamingResultSetExtractorOneRow() throws SQLException { ResultSet rset = mock(ResultSet.class); given(rset.next()).willReturn(true, false); AbstractLobStreamingResultSetExtractor<Void> lobRse = getResultSetExtractor(false); lobRse.extractData(rset); verify(rset).clearWarnings(); }
@Test public void testAbstractLobStreamingResultSetExtractorMultipleRows() throws SQLException { ResultSet rset = mock(ResultSet.class); given(rset.next()).willReturn(true, true, false); AbstractLobStreamingResultSetExtractor<Void> lobRse = getResultSetExtractor(false); thrown.expect(IncorrectResultSizeDataAccessException.class); try { lobRse.extractData(rset); } finally { verify(rset).clearWarnings(); } }
resultSet = getStatement().getResultSet(); printWarnings(resultSet.getWarnings(), false); resultSet.clearWarnings(); if (print) { printResults(resultSet, out);
@Override public void clearWarnings() throws SQLException { delegate.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { innerResultSet.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { rs.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { innerResultSet.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { try { rs.clearWarnings(); } catch (Throwable t) { throw checkException(t); } }
@Override public void resultSet_clearWarnings(ResultSetProxy rs) throws SQLException { if (this.pos < filterSize) { nextFilter() .resultSet_clearWarnings(this, rs); return; } rs.getResultSetRaw() .clearWarnings(); }
public static void logSQLWarnings(final ResultSet resultSet) { if (resultSet == null) { return; } if (!LOGGER.isLoggable(Level.INFO)) { return; } try { logSQLWarnings(resultSet.getWarnings()); resultSet.clearWarnings(); } catch (final SQLException e) { // NOTE: Do not show exception while logging warnings LOGGER.log(Level.WARNING, "Could not log SQL warnings for result set"); } }
public static void logSQLWarnings(final ResultSet resultSet) { if (resultSet == null) { return; } if (!LOGGER.isLoggable(Level.INFO)) { return; } try { logSQLWarnings(resultSet.getWarnings()); resultSet.clearWarnings(); } catch (final SQLException e) { // NOTE: Do not show exception while logging warnings LOGGER.log(Level.WARNING, "Could not log SQL warnings for result set"); } }
/** * Clears the warnings. */ public void clearWarnings() throws SQLException { _rs.clearWarnings(); }
/** * {@inheritDoc} * * @see java.sql.ResultSet#clearWarnings() */ @Override public void clearWarnings() throws SQLException { wrapped.clearWarnings(); }
@Override public void clearWarnings() throws SQLException { logger.logf(level, "%s.clearWarnings()", resultSetID); resultSet.clearWarnings(); }