@Override public void updateInt(int columnIndex, int x) throws SQLException { rs.updateInt(columnIndex, x); }
@Override public void updateInt(String columnLabel, int x) throws SQLException { delegate.updateInt(columnLabel, x); }
@Override public void updateInt(String columnLabel, int x) throws SQLException { rs.updateInt(columnLabel, x); }
@Override public void updateInt(int columnIndex, int x) throws SQLException { delegate.updateInt(columnIndex, x); }
@Override public void updateInt(int columnIndex, int x) throws SQLException { try { rs.updateInt(columnIndex, x); } catch (Throwable t) { throw checkException(t); } }
@Override public void updateInt(String columnLabel, int x) throws SQLException { try { rs.updateInt(columnLabel, x); } catch (Throwable t) { throw checkException(t); } }
@ExpectWarning("SQL") public void test1(ResultSet rs) throws SQLException { int i = rs.getInt(0); i++; rs.updateInt(0, i); }
@Override public void run() throws Exception { rs.updateInt("id", 0); } });
@Override public void run() throws Exception { rs.updateInt(1, 0); } });
@ExpectWarning("SQL_BAD_RESULTSET_ACCESS") void bug4(ResultSet any, int anyInt) throws SQLException { any.updateInt(0, anyInt); }
@Override public void resultSet_updateInt(ResultSetProxy resultSet, int columnIndex, int x) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateInt(this, resultSet, columnIndex, x); return; } resultSet.getResultSetRaw().updateInt(columnIndex, x); }
@Override public void resultSet_updateInt(ResultSetProxy resultSet, String columnLabel, int x) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateInt(this, resultSet, columnLabel, x); return; } resultSet.getResultSetRaw().updateInt(columnLabel, x); }
break; case Types.INTEGER: rs.updateInt(columnIndex, Integer.decode(x)); break; case Types.TINYINT:
@Override public void updateInt(int columnIndex, int x) throws SQLException { delegate.updateInt(columnIndex, x); }
@Override public void updateInt(String columnLabel, int x) throws SQLException { innerResultSet.updateInt(columnLabel, x); }
@Override public void updateInt(String columnLabel, int x) throws SQLException { delegate.updateInt(columnLabel, x); }
@Override public void updateInt(int columnIndex, int x) throws SQLException { try { rs.updateInt(columnIndex, x); } catch (Throwable t) { throw checkException(t); } }
/** * Inserts a new token entry via the given updatable {@code resultSet}. * * @param resultSet the updatable result set to add the entry to * @param token the token of the entry to insert * @param processorName the name of the processor to insert a token for * @param segment the segment of the processor to insert a token for * @return the tracking token of the inserted entry * * @throws SQLException when an exception occurs while inserting a token entry */ protected TrackingToken insertTokenEntry(ResultSet resultSet, TrackingToken token, String processorName, int segment) throws SQLException { AbstractTokenEntry<?> entry = new GenericTokenEntry<>(token, serializer, contentType, processorName, segment); entry.claim(nodeId, claimTimeout); resultSet.moveToInsertRow(); resultSet.updateObject(schema.tokenColumn(), token == null ? null : entry.getSerializedToken().getData()); resultSet.updateString(schema.tokenTypeColumn(), token == null ? null : entry.getSerializedToken().getType().getName()); resultSet.updateString(schema.timestampColumn(), entry.timestampAsString()); resultSet.updateString(schema.ownerColum(), entry.getOwner()); resultSet.updateString(schema.processorNameColumn(), processorName); resultSet.updateInt(schema.segmentColumn(), segment); resultSet.insertRow(); return token; }
@Override public void resultSet_updateInt(ResultSetProxy resultSet, int columnIndex, int x) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateInt(this, resultSet, columnIndex, x); return; } resultSet.getResultSetRaw().updateInt(columnIndex, x); }
@Override public void resultSet_updateInt(ResultSetProxy resultSet, String columnLabel, int x) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_updateInt(this, resultSet, columnLabel, x); return; } resultSet.getResultSetRaw().updateInt(columnLabel, x); }