当前位置: 首页>>代码示例>>Java>>正文


Java ResultSet.FETCH_FORWARD属性代码示例

本文整理汇总了Java中java.sql.ResultSet.FETCH_FORWARD属性的典型用法代码示例。如果您正苦于以下问题:Java ResultSet.FETCH_FORWARD属性的具体用法?Java ResultSet.FETCH_FORWARD怎么用?Java ResultSet.FETCH_FORWARD使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在java.sql.ResultSet的用法示例。


在下文中一共展示了ResultSet.FETCH_FORWARD属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setFetchDirection

@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;
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:9,代码来源:JDBC4Statement.java

示例2: getFetchDirection

public int getFetchDirection() throws SQLException {
    try {
        if (this.wrappedStmt != null) {
            return this.wrappedStmt.getFetchDirection();
        }

        throw SQLError.createSQLException("Statement already closed", SQLError.SQL_STATE_ILLEGAL_ARGUMENT, this.exceptionInterceptor);
    } catch (SQLException sqlEx) {
        checkAndFireConnectionError(sqlEx);
    }

    return ResultSet.FETCH_FORWARD; // we actually never get here, but the compiler can't figure that out
}
 
开发者ID:bragex,项目名称:the-vigilantes,代码行数:13,代码来源:StatementWrapper.java

示例3: getFetchDirection

public int getFetchDirection() throws SQLException {
	if (conn.isClosed()) {
		throw new SQLException(BlancoGenericJdbcConstants.MESSAGE_DATABASE_CLOSED);
	}

	// Always FETCH FORWARD.
	return ResultSet.FETCH_FORWARD;
}
 
开发者ID:igapyon,项目名称:blanco-sfdc-jdbc-driver,代码行数:8,代码来源:AbstractBlancoGenericJdbcStatement.java

示例4: rowSetFetchDirection

@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}
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:9,代码来源:CommonRowSetTests.java

示例5: setFetchDirection

@Override
public void setFetchDirection(int direction) throws SQLException {
	checkConnection("setFetchDirection");
	if (direction != ResultSet.FETCH_FORWARD) {
		throw new SQLException(String.format("direction %d is not supported!", direction));
	}
}
 
开发者ID:thulab,项目名称:iotdb-jdbc,代码行数:7,代码来源:TsfileStatement.java

示例6: setFetchDirection

public void setFetchDirection(int direction) throws SQLException
{
	if (direction != ResultSet.FETCH_FORWARD)
		throw new SQLFeatureNotSupportedException("Only FETCH_FORWARD is supported");
}
 
开发者ID:olavloite,项目名称:spanner-jdbc,代码行数:5,代码来源:AbstractCloudSpannerFetcher.java

示例7: getFetchDirection

public int getFetchDirection() throws SQLException
{
	return ResultSet.FETCH_FORWARD;
}
 
开发者ID:olavloite,项目名称:spanner-jdbc,代码行数:4,代码来源:AbstractCloudSpannerFetcher.java

示例8: getFetchDirection

public int getFetchDirection() throws SQLException {
    checkOpen();
    return ResultSet.FETCH_FORWARD;
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:4,代码来源:SyncRS.java

示例9: setFetchDirection

public void setFetchDirection(int d) throws SQLException {
    checkOpen();
    if (d != ResultSet.FETCH_FORWARD)
        throw new SQLException("only FETCH_FORWARD direction supported");
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:5,代码来源:SyncRS.java

示例10: getFetchDirection

@Override
default int getFetchDirection() throws SQLException {
    return ResultSet.FETCH_FORWARD;
}
 
开发者ID:agroal,项目名称:agroal,代码行数:4,代码来源:MockStatement.java

示例11: getFetchDirection

@Override
public int getFetchDirection() throws SQLException {
	return ResultSet.FETCH_FORWARD;
}
 
开发者ID:thulab,项目名称:iotdb-jdbc,代码行数:4,代码来源:TsfileQueryResultSet.java

示例12: getFetchDirection

@Override
public int getFetchDirection() throws SQLException {
	checkConnection("getFetchDirection");
	return ResultSet.FETCH_FORWARD;
}
 
开发者ID:thulab,项目名称:iotdb-jdbc,代码行数:5,代码来源:TsfileStatement.java


注:本文中的java.sql.ResultSet.FETCH_FORWARD属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。