Java Code Examples for java.sql.ResultSet#updateRowId()

The following examples show how to use java.sql.ResultSet#updateRowId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UnsupportedUpdateOperationResultSetTest.java    From sharding-jdbc-1.5.1 with Apache License 2.0 4 votes vote down vote up
@Test(expected = SQLFeatureNotSupportedException.class)
public void assertUpdateRowIdForColumnIndex() throws SQLException {
    for (ResultSet each : resultSets) {
        each.updateRowId(1, null);
    }
}
 
Example 2
Source File: UnsupportedUpdateOperationResultSetTest.java    From sharding-jdbc-1.5.1 with Apache License 2.0 4 votes vote down vote up
@Test(expected = SQLFeatureNotSupportedException.class)
public void assertUpdateRowIdForColumnLabel() throws SQLException {
    for (ResultSet each : resultSets) {
        each.updateRowId("label", null);
    }
}
 
Example 3
Source File: UnsupportedUpdateOperationResultSetTest.java    From shardingsphere with Apache License 2.0 4 votes vote down vote up
@Test(expected = SQLFeatureNotSupportedException.class)
public void assertUpdateRowIdForColumnIndex() throws SQLException {
    for (ResultSet each : resultSets) {
        each.updateRowId(1, null);
    }
}
 
Example 4
Source File: UnsupportedUpdateOperationResultSetTest.java    From shardingsphere with Apache License 2.0 4 votes vote down vote up
@Test(expected = SQLFeatureNotSupportedException.class)
public void assertUpdateRowIdForColumnLabel() throws SQLException {
    for (ResultSet each : resultSets) {
        each.updateRowId("label", null);
    }
}