Interface IDataSetResult

  • All Known Implementing Classes:
    DataSetResult

    public interface IDataSetResult
    This interface represents the result of a report request. Use the methods of this interface to add rows to the report.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addRow​(java.lang.Object... rowValues)
      Adds a new row to the report with the given values for each column.
      void setColumnValues​(java.lang.String columnName, java.util.List<java.lang.Object> values)
      Sets a list of values for one column.
      void setTotalResultCount​(long totalResultCount)
      Sets the total available count of rows of this report.
    • Method Detail

      • setColumnValues

        void setColumnValues​(java.lang.String columnName,
                             java.util.List<java.lang.Object> values)
        Sets a list of values for one column. In a report, the column with the given name will have these values. If you use this method to fill your report, all columns must have the same count of values. This count is also the count of the rows for the report.
        Parameters:
        columnName - the name of the column for which the values will be set.
        values - the list of values of the column with the given name.
      • addRow

        void addRow​(java.lang.Object... rowValues)
        Adds a new row to the report with the given values for each column. Please give exactly the same count of arguments as the count of the columns of the report.
        Parameters:
        rowValues - the values of all columns for the row to add.
      • setTotalResultCount

        void setTotalResultCount​(long totalResultCount)
        Sets the total available count of rows of this report. Maybe the count of the rows of this data set result is limited by the offset and limit parameters. With this method you can specify the total count of rows that are available.
        Parameters:
        totalResultCount - the total available count of rows of this report.