Java Code Examples for java.sql.ResultSet.FETCH_UNKNOWN

The following are Jave code examples for showing how to use FETCH_UNKNOWN of the java.sql.ResultSet class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: sstore-soft   File: JDBC4Statement.java   View Source Code Vote up 5 votes
@Override
public void setFetchDirection(int direction) throws SQLException
{
    checkClosed();
    if ((direction != ResultSet.FETCH_FORWARD) && (direction != ResultSet.FETCH_REVERSE) && (direction != ResultSet.FETCH_UNKNOWN)) {
        throw SQLError.get(SQLError.ILLEGAL_ARGUMENT, direction);
    }
    this.fetchDirection = direction;
}
 
Example 2
Project: s-store   File: JDBC4Statement.java   View Source Code Vote up 5 votes
@Override
public void setFetchDirection(int direction) throws SQLException
{
    checkClosed();
    if ((direction != ResultSet.FETCH_FORWARD) && (direction != ResultSet.FETCH_REVERSE) && (direction != ResultSet.FETCH_UNKNOWN)) {
        throw SQLError.get(SQLError.ILLEGAL_ARGUMENT, direction);
    }
    this.fetchDirection = direction;
}
 
Example 3
Project: jdk8u-jdk   File: CommonRowSetTests.java   View Source Code Vote up 5 votes
@DataProvider(name = "rowSetFetchDirection")
protected Object[][] rowSetFetchDirection() throws Exception {
    RowSet rs = newInstance();
    return new Object[][]{
        {rs, ResultSet.FETCH_FORWARD},
        {rs, ResultSet.FETCH_REVERSE},
        {rs, ResultSet.FETCH_UNKNOWN}
    };
}
 
Example 4
Project: openjdk-jdk10   File: CommonRowSetTests.java   View Source Code Vote up 5 votes
@DataProvider(name = "rowSetFetchDirection")
protected Object[][] rowSetFetchDirection() throws Exception {
    RowSet rs = newInstance();
    return new Object[][]{
        {rs, ResultSet.FETCH_FORWARD},
        {rs, ResultSet.FETCH_REVERSE},
        {rs, ResultSet.FETCH_UNKNOWN}
    };
}