public interface IPage extends java.lang.Iterable<IResultSetRow>
Interface that provides the ability to consume a result set using pages.
IQueryService queryService = ...
String query = "SELECT [Resource ID], [Name] FROM [SOXIssue]";
IQuery query = queryService.buildQuery(query);
// Execute a query and fetch the results.
ITabularResultSet resultset = query.fetchRows(0);
for (IPage page : resultset.getPages()) {
// process page...
for (IResultSetRow row : page) {
// process each row...
for (IField field : row) {
// process each field...
}
}
}
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.