當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。