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

The following examples show how to use java.sql.ResultSet#updateRef() . 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 assertUpdateRefForColumnIndex() throws SQLException {
    for (ResultSet each : resultSets) {
        each.updateRef(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 assertUpdateRefForColumnLabel() throws SQLException {
    for (ResultSet each : resultSets) {
        each.updateRef("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 assertUpdateRefForColumnIndex() throws SQLException {
    for (ResultSet each : resultSets) {
        each.updateRef(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 assertUpdateRefForColumnLabel() throws SQLException {
    for (ResultSet each : resultSets) {
        each.updateRef("label", null);
    }
}