com.ibm.openpages.api.query

## Interface IResultSetRow

- All Superinterfaces:
    java.lang.Iterable<IField>

      public interface IResultSetRow
      extends java.lang.Iterable<IField>

  Interface that provides the ability to consume a row of fields.

       IQueryService queryService = ...

       String query = "SELECT [Resource ID], [Name] FROM [SOXIssue]";

       IQuery query = queryService.buildQuery(query);

       // Execute query and fetch results.
       ITabularResultSet resultset = query.fetchRows(0);

       for (IResultSetRow row : resultset) {
           // process each row...
           for (IField field : row) {

               // process each field...
           }
       }

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `IField` | `getField(int columnIndex)` Directly access the value of the designated column in this IResultSetRow object as an IField object.

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, iterator, spliterator`

- - ### Method Detail

    - #### getField

          IField getField(int columnIndex)

      Directly access the value of the designated column in this IResultSetRow object as an IField object. The order of the columns is determined by the SELECT clause of the query.
      Parameters:
        `columnIndex` - (required) the index of the column to retrieve from the row. The first column is 0, the second is 1, ...
      Returns:
        an IField object representing the value in the specified column
      Throws:
        `OpenPagesException` - if the columnIndex is not valid

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.