Package com.mendix.webui.reporting
Class DataSetResult
java.lang.Object
com.mendix.webui.reporting.DataSetResult
- All Implemented Interfaces:
IDataSetResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumnType
(ColumnType type) Adds a column with the specified type to the data set.void
Adds a row with the specified values to this data set.Returns the columns of this data set and their names.Returns the types of all columns in this data set.Returns all values for the column with the specified name.long
Returns the total number of rows that exist.void
setColumnValues
(String columnName, List<Object> values) Sets the columns values for the specified column.void
setTotalResultCount
(long totalResultCount) Sets the total number of rows that exist to the specified value.
-
Constructor Details
-
DataSetResult
-
-
Method Details
-
setColumnValues
Sets the columns values for the specified column.- Specified by:
setColumnValues
in interfaceIDataSetResult
- Parameters:
columnName
- the name of the column to changevalues
- the values to set
-
addRow
Adds a row with the specified values to this data set.- Specified by:
addRow
in interfaceIDataSetResult
- Parameters:
rowValues
- the values of the row
-
getData
Returns all values for the column with the specified name.- Parameters:
columnName
- the column for which to get the data- Returns:
- the column values if it exists, null otherwise
-
getColumns
Returns the columns of this data set and their names.- Returns:
- the columns by name
-
getColumnTypes
Returns the types of all columns in this data set.- Returns:
- the column types
-
addColumnType
Adds a column with the specified type to the data set.- Parameters:
type
- the column type
-
getTotalResultCount
public long getTotalResultCount()Returns the total number of rows that exist. Note that this is not necessarily the number of rows in this data set, which may contain only a partial view of the data.- Returns:
- the total result count
-
setTotalResultCount
public void setTotalResultCount(long totalResultCount) Sets the total number of rows that exist to the specified value.- Specified by:
setTotalResultCount
in interfaceIDataSetResult
- Parameters:
totalResultCount
- the number of rows to set
-