本文整理了Java中java.sql.ResultSet.updateInt
方法的一些代码示例,展示了ResultSet.updateInt
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResultSet.updateInt
方法的具体详情如下:
包路径:java.sql.ResultSet
类名称:ResultSet
方法名:updateInt
[英]Updates a column specified by a column index with an int value.
[中]使用int值更新列索引指定的列。
代码示例来源:origin: querydsl/querydsl
@Override
public void updateInt(int columnIndex, int x) throws SQLException {
rs.updateInt(columnIndex, x);
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public void updateInt(String columnLabel, int x) throws SQLException {
delegate.updateInt(columnLabel, x);
}
代码示例来源:origin: querydsl/querydsl
@Override
public void updateInt(String columnLabel, int x) throws SQLException {
rs.updateInt(columnLabel, x);
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public void updateInt(int columnIndex, int x) throws SQLException {
delegate.updateInt(columnIndex, x);
}
代码示例来源:origin: alibaba/druid
@Override
public void updateInt(int columnIndex, int x) throws SQLException {
try {
rs.updateInt(columnIndex, x);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: alibaba/druid
@Override
public void updateInt(String columnLabel, int x) throws SQLException {
try {
rs.updateInt(columnLabel, x);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: spotbugs/spotbugs
@ExpectWarning("SQL")
public void test1(ResultSet rs) throws SQLException {
int i = rs.getInt(0);
i++;
rs.updateInt(0, i);
}
代码示例来源:origin: apache/ignite
@Override public void run() throws Exception {
rs.updateInt("id", 0);
}
});
代码示例来源:origin: apache/ignite
@Override public void run() throws Exception {
rs.updateInt(1, 0);
}
});
代码示例来源:origin: spotbugs/spotbugs
@ExpectWarning("SQL_BAD_RESULTSET_ACCESS")
void bug4(ResultSet any, int anyInt) throws SQLException {
any.updateInt(0, anyInt);
}
代码示例来源:origin: alibaba/druid
@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);
}
代码示例来源:origin: alibaba/druid
@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);
}
代码示例来源:origin: com.h2database/h2
break;
case Types.INTEGER:
rs.updateInt(columnIndex, Integer.decode(x));
break;
case Types.TINYINT:
代码示例来源:origin: p6spy/p6spy
@Override
public void updateInt(int columnIndex, int x) throws SQLException {
delegate.updateInt(columnIndex, x);
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Override
public void updateInt(String columnLabel, int x) throws SQLException {
innerResultSet.updateInt(columnLabel, x);
}
代码示例来源:origin: p6spy/p6spy
@Override
public void updateInt(String columnLabel, int x) throws SQLException {
delegate.updateInt(columnLabel, x);
}
代码示例来源:origin: com.alibaba/druid
@Override
public void updateInt(int columnIndex, int x) throws SQLException {
try {
rs.updateInt(columnIndex, x);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: AxonFramework/AxonFramework
/**
* 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;
}
代码示例来源:origin: com.alibaba/druid
@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);
}
代码示例来源:origin: com.alibaba/druid
@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);
}
内容来源于网络,如有侵权,请联系作者删除!