java.sql.ResultSet#FETCH_FORWARD源码实例Demo

下面列出了java.sql.ResultSet#FETCH_FORWARD 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: jdbc-driver-csv   文件: CsvResultSet.java
@Override
public void setFetchDirection(int direction) throws SQLException {
    checkOpen();

    if (direction == ResultSet.FETCH_FORWARD ||
            direction == ResultSet.FETCH_REVERSE ||
            direction == ResultSet.FETCH_UNKNOWN) {
        this.fetchDirection = direction;
    } else {
        throw new SQLException(CsvResources.getString("unsupportedDirection") + ": " + direction);
    }
}
 
源代码2 项目: dragonwell8_jdk   文件: CommonRowSetTests.java
@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}
    };
}
 
源代码3 项目: snowflake-jdbc   文件: SnowflakeBaseResultSet.java
@Override
public void setFetchDirection(int direction) throws SQLException
{
  logger.debug(
      "public void setFetchDirection(int direction)");

  raiseSQLExceptionIfResultSetIsClosed();
  if (direction != ResultSet.FETCH_FORWARD)
  {
    throw new SQLFeatureNotSupportedException();
  }
}
 
源代码4 项目: jdk8u60   文件: CommonRowSetTests.java
@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}
    };
}
 
源代码5 项目: openjdk-jdk8u   文件: CommonRowSetTests.java
@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}
    };
}
 
public void setFetchDirection(int direction) throws SQLException {
    validateState();

    if (direction != ResultSet.FETCH_FORWARD) {
        if (!quiet) {
            throw CassandraErrors.notSupportedException();
        }
        // this.fetchDirection = direction;
    }
}
 
源代码7 项目: gemfirexd-oss   文件: ClientStatement.java
/**
 * {@inheritDoc}
 */
@Override
public int getFetchDirection() throws SQLException {
  if (this.attrs.isSetFetchReverse()) {
    return this.attrs.isFetchReverse() ? ResultSet.FETCH_REVERSE
        : ResultSet.FETCH_FORWARD;
  }
  else {
    return ResultSet.FETCH_UNKNOWN;
  }
}
 
源代码8 项目: snowflake-jdbc   文件: SnowflakeStatementV1.java
@Override
public void setFetchDirection(int direction) throws SQLException
{
  logger.debug("setFetchDirection(int direction)");
  raiseSQLExceptionIfStatementIsClosed();
  if (direction != ResultSet.FETCH_FORWARD)
  {
    throw new SQLFeatureNotSupportedException();
  }
}
 
源代码9 项目: gemfirexd-oss   文件: ClientStatement.java
/**
 * {@inheritDoc}
 */
@Override
public void setFetchDirection(int direction) throws SQLException {
  checkClosed();
  if (direction == ResultSet.FETCH_REVERSE) {
    this.attrs.setFetchReverse(true);
  }
  else if (direction == ResultSet.FETCH_FORWARD) {
    this.attrs.setFetchReverse(false);
  }
  else if (this.attrs.isSetFetchReverse()) {
    this.attrs.setFetchReverseIsSet(false);
    this.attrs.setFetchReverse(false);
  }
}
 
源代码10 项目: sis   文件: AbstractStatement.java
/**
 * Defaults to {@link ResultSet#FETCH_FORWARD}.
 */
@Override
public int getFetchDirection() throws SQLException {
    return ResultSet.FETCH_FORWARD;
}
 
源代码11 项目: tddl   文件: TResultSet.java
@Override
public int getFetchDirection() throws SQLException {
    return ResultSet.FETCH_FORWARD;
}
 
源代码12 项目: requery   文件: BaseStatement.java
@Override
public void setFetchDirection(int direction) throws SQLException {
    if (direction != ResultSet.FETCH_FORWARD) {
        throw new SQLFeatureNotSupportedException("only FETCH_FORWARD is supported");
    }
}
 
源代码13 项目: phoenix   文件: PhoenixStatement.java
@Override
public int getFetchDirection() throws SQLException {
    return ResultSet.FETCH_FORWARD;
}
 
源代码14 项目: phoenix   文件: PhoenixResultSet.java
@Override
public int getFetchDirection() throws SQLException {
    return ResultSet.FETCH_FORWARD;
}
 
源代码15 项目: phoenix   文件: PhoenixStatement.java
@Override
public void setFetchDirection(int direction) throws SQLException {
    if (direction != ResultSet.FETCH_FORWARD) {
        throw new SQLFeatureNotSupportedException();
    }
}
 
源代码16 项目: phoenix   文件: PhoenixResultSet.java
@Override
public void setFetchDirection(int direction) throws SQLException {
    if (direction != ResultSet.FETCH_FORWARD) {
        throw new SQLFeatureNotSupportedException();
    }
}
 
源代码17 项目: phoenix   文件: PhoenixResultSet.java
@Override
public int getFetchDirection() throws SQLException {
    return ResultSet.FETCH_FORWARD;
}
 
源代码18 项目: phoenix   文件: PhoenixStatement.java
@Override
public void setFetchDirection(int direction) throws SQLException {
    if (direction != ResultSet.FETCH_FORWARD) {
        throw new SQLFeatureNotSupportedException();
    }
}
 
源代码19 项目: phoenix   文件: PhoenixResultSet.java
@Override
public void setFetchDirection(int direction) throws SQLException {
    if (direction != ResultSet.FETCH_FORWARD) {
        throw new SQLFeatureNotSupportedException();
    }
}
 
源代码20 项目: herddb   文件: HerdDBStatement.java
@Override
public int getFetchDirection() throws SQLException {
    return ResultSet.FETCH_FORWARD;
}