📄 jdbcresultset.java
字号:
try {
if (debug()) {
debugCode("updateString("+columnIndex+", "+quote(x)+");");
}
update(columnIndex, x == null ? (Value) ValueNull.INSTANCE : ValueString.get(x));
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateString(String columnName, String x) throws SQLException {
try {
if (debug()) {
debugCode("updateString("+quote(columnName)+", "+quote(x)+");");
}
update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueString.get(x));
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateDate(int columnIndex, Date x) throws SQLException {
try {
if (debug()) {
debugCode("updateDate("+columnIndex+", x);");
}
update(columnIndex, x == null ? (Value) ValueNull.INSTANCE : ValueDate.get(x));
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateDate(String columnName, Date x) throws SQLException {
try {
if (debug()) {
debugCode("updateDate("+quote(columnName)+", x);");
}
update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueDate.get(x));
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateTime(int columnIndex, Time x) throws SQLException {
try {
if (debug()) {
debugCode("updateTime("+columnIndex+", x);");
}
update(columnIndex, x == null ? (Value) ValueNull.INSTANCE : ValueTime.get(x));
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateTime(String columnName, Time x) throws SQLException {
try {
if (debug()) {
debugCode("updateTime("+quote(columnName)+", x);");
}
update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueTime.get(x));
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
try {
if (debug()) {
debugCode("updateTimestamp("+columnIndex+", x);");
}
update(columnIndex, x == null ? (Value) ValueNull.INSTANCE : ValueTimestamp.get(x));
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateTimestamp(String columnName, Timestamp x) throws SQLException {
try {
if (debug()) {
debugCode("updateTimestamp("+quote(columnName)+", x);");
}
update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueTimestamp.get(x));
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
updateAsciiStream(columnIndex, x, (long) length);
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
updateAsciiStream(columnIndex, x, -1);
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
try {
if (debug()) {
debugCode("updateAsciiStream("+columnIndex+", x, "+length+"L);");
}
checkClosed();
Value v = conn.createClob(IOUtils.getAsciiReader(x), length);
update(columnIndex, v);
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException {
updateAsciiStream(columnName, x, (long) length);
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateAsciiStream(String columnName, InputStream x) throws SQLException {
updateAsciiStream(columnName, x, -1);
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateAsciiStream(String columnName, InputStream x, long length) throws SQLException {
try {
if (debug()) {
debugCode("updateAsciiStream("+quote(columnName)+", x, "+length+"L);");
}
checkClosed();
Value v = conn.createClob(IOUtils.getAsciiReader(x), length);
update(columnName, v);
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
updateBinaryStream(columnIndex, x, (long) length);
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
updateBinaryStream(columnIndex, x, -1);
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
try {
if (debug()) {
debugCode("updateBinaryStream("+columnIndex+", x, "+length+"L);");
}
checkClosed();
Value v = conn.createBlob(x, length);
update(columnIndex, v);
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateBinaryStream(String columnName, InputStream x) throws SQLException {
updateBinaryStream(columnName, x, -1);
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException {
updateBinaryStream(columnName, x, (long) length);
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateBinaryStream(String columnName, InputStream x, long length) throws SQLException {
try {
if (debug()) {
debugCode("updateBinaryStream("+quote(columnName)+", x, "+length+"L);");
}
checkClosed();
Value v = conn.createBlob(x, length);
update(columnName, v);
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
try {
if (debug()) {
debugCode("updateCharacterStream("+columnIndex+", x, "+length+"L);");
}
checkClosed();
Value v = conn.createClob(x, length);
update(columnIndex, v);
} catch (Throwable e) {
throw logAndConvert(e);
}
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
updateCharacterStream(columnIndex, x, (long) length);
}
/**
* Updates a column in the current or insert row.
*
* @param columnIndex (1,2,...)
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
updateCharacterStream(columnIndex, x, -1);
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateCharacterStream(String columnName, Reader x, int length) throws SQLException {
updateCharacterStream(columnName, x, (long) length);
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @throws SQLException if the result set is closed
*/
public void updateCharacterStream(String columnName, Reader x) throws SQLException {
updateCharacterStream(columnName, x, -1);
}
/**
* Updates a column in the current or insert row.
*
* @param columnName the name of the column label
* @param x the value
* @param length the number of characters
* @throws SQLException if the result set is closed
*/
public void updateCharacterStream(String columnName, Reader x, long length) throws SQLException {
try {
if (debug()) {
debugCode("updateCharacterStream("+quote(columnName)+", x, "+length+"L);");
}
checkClosed();
Value v = c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -