Package lib.aide.tabular
Record Class TabularRowsRequest
java.lang.Object
java.lang.Record
lib.aide.tabular.TabularRowsRequest
- Record Components:
startRow- The index of the first row to fetch.endRow- The index of the last row to fetch.filterModel- The filter model applied to the grid.valueCols- The columns to aggregate.rowGroupCols- The columns to group by.pivotMode- Indicates if pivot mode is enabled.pivotCols- The columns to pivot.groupKeys- The keys to group by.sortModel- The sort model applied to the grid.requestContext- Additional context data for the request.rangeSelection- The selected ranges in the grid.aggregationFunctions- The aggregation functions to apply.
public record TabularRowsRequest(int startRow, int endRow, Map<String,TabularRowsRequest.FilterModel> filterModel, List<TabularRowsRequest.ColumnVO> valueCols, List<TabularRowsRequest.ColumnVO> rowGroupCols, boolean pivotMode, List<TabularRowsRequest.ColumnVO> pivotCols, List<String> groupKeys, List<TabularRowsRequest.SortModel> sortModel, Map<String,Object> requestContext, List<TabularRowsRequest.RangeSelection> rangeSelection, List<TabularRowsRequest.AggregationFunction> aggregationFunctions)
extends Record
Record representing a server-side rows request from AG Grid.
This record includes all necessary parameters for pagination, sorting, filtering, and grouping.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRecord representing an aggregation function.static final recordRecord representing a column definition.static final recordRecord representing a filter model.static final recordRecord representing a filter model.static final recordRecord representing a range selection.static final recordRecord representing a sort model. -
Constructor Summary
ConstructorsConstructorDescriptionTabularRowsRequest(int startRow, int endRow, Map<String, TabularRowsRequest.FilterModel> filterModel, List<TabularRowsRequest.ColumnVO> valueCols, List<TabularRowsRequest.ColumnVO> rowGroupCols, boolean pivotMode, List<TabularRowsRequest.ColumnVO> pivotCols, List<String> groupKeys, List<TabularRowsRequest.SortModel> sortModel, Map<String, Object> requestContext, List<TabularRowsRequest.RangeSelection> rangeSelection, List<TabularRowsRequest.AggregationFunction> aggregationFunctions) Creates an instance of aTabularRowsRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationFunctionsrecord component.intendRow()Returns the value of theendRowrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefilterModelrecord component.Returns the value of thegroupKeysrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepivotColsrecord component.booleanReturns the value of thepivotModerecord component.Returns the value of therangeSelectionrecord component.Returns the value of therequestContextrecord component.Returns the value of therowGroupColsrecord component.Returns the value of thesortModelrecord component.intstartRow()Returns the value of thestartRowrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueColsrecord component.
-
Constructor Details
-
TabularRowsRequest
public TabularRowsRequest(int startRow, int endRow, Map<String, TabularRowsRequest.FilterModel> filterModel, List<TabularRowsRequest.ColumnVO> valueCols, List<TabularRowsRequest.ColumnVO> rowGroupCols, boolean pivotMode, List<TabularRowsRequest.ColumnVO> pivotCols, List<String> groupKeys, List<TabularRowsRequest.SortModel> sortModel, Map<String, Object> requestContext, List<TabularRowsRequest.RangeSelection> rangeSelection, List<TabularRowsRequest.AggregationFunction> aggregationFunctions) Creates an instance of aTabularRowsRequestrecord class.- Parameters:
startRow- the value for thestartRowrecord componentendRow- the value for theendRowrecord componentfilterModel- the value for thefilterModelrecord componentvalueCols- the value for thevalueColsrecord componentrowGroupCols- the value for therowGroupColsrecord componentpivotMode- the value for thepivotModerecord componentpivotCols- the value for thepivotColsrecord componentgroupKeys- the value for thegroupKeysrecord componentsortModel- the value for thesortModelrecord componentrequestContext- the value for therequestContextrecord componentrangeSelection- the value for therangeSelectionrecord componentaggregationFunctions- the value for theaggregationFunctionsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
startRow
public int startRow()Returns the value of thestartRowrecord component.- Returns:
- the value of the
startRowrecord component
-
endRow
public int endRow()Returns the value of theendRowrecord component.- Returns:
- the value of the
endRowrecord component
-
filterModel
Returns the value of thefilterModelrecord component.- Returns:
- the value of the
filterModelrecord component
-
valueCols
Returns the value of thevalueColsrecord component.- Returns:
- the value of the
valueColsrecord component
-
rowGroupCols
Returns the value of therowGroupColsrecord component.- Returns:
- the value of the
rowGroupColsrecord component
-
pivotMode
public boolean pivotMode()Returns the value of thepivotModerecord component.- Returns:
- the value of the
pivotModerecord component
-
pivotCols
Returns the value of thepivotColsrecord component.- Returns:
- the value of the
pivotColsrecord component
-
groupKeys
Returns the value of thegroupKeysrecord component.- Returns:
- the value of the
groupKeysrecord component
-
sortModel
Returns the value of thesortModelrecord component.- Returns:
- the value of the
sortModelrecord component
-
requestContext
Returns the value of therequestContextrecord component.- Returns:
- the value of the
requestContextrecord component
-
rangeSelection
Returns the value of therangeSelectionrecord component.- Returns:
- the value of the
rangeSelectionrecord component
-
aggregationFunctions
Returns the value of theaggregationFunctionsrecord component.- Returns:
- the value of the
aggregationFunctionsrecord component
-