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 record
Record representing an aggregation function.static final record
Record representing a column definition.static final record
Record representing a filter model.static final record
Record representing a filter model.static final record
Record representing a range selection.static final record
Record 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 aTabularRowsRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationFunctions
record component.int
endRow()
Returns the value of theendRow
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefilterModel
record component.Returns the value of thegroupKeys
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepivotCols
record component.boolean
Returns the value of thepivotMode
record component.Returns the value of therangeSelection
record component.Returns the value of therequestContext
record component.Returns the value of therowGroupCols
record component.Returns the value of thesortModel
record component.int
startRow()
Returns the value of thestartRow
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevalueCols
record 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 aTabularRowsRequest
record class.- Parameters:
startRow
- the value for thestartRow
record componentendRow
- the value for theendRow
record componentfilterModel
- the value for thefilterModel
record componentvalueCols
- the value for thevalueCols
record componentrowGroupCols
- the value for therowGroupCols
record componentpivotMode
- the value for thepivotMode
record componentpivotCols
- the value for thepivotCols
record componentgroupKeys
- the value for thegroupKeys
record componentsortModel
- the value for thesortModel
record componentrequestContext
- the value for therequestContext
record componentrangeSelection
- the value for therangeSelection
record componentaggregationFunctions
- the value for theaggregationFunctions
record 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 thestartRow
record component.- Returns:
- the value of the
startRow
record component
-
endRow
public int endRow()Returns the value of theendRow
record component.- Returns:
- the value of the
endRow
record component
-
filterModel
Returns the value of thefilterModel
record component.- Returns:
- the value of the
filterModel
record component
-
valueCols
Returns the value of thevalueCols
record component.- Returns:
- the value of the
valueCols
record component
-
rowGroupCols
Returns the value of therowGroupCols
record component.- Returns:
- the value of the
rowGroupCols
record component
-
pivotMode
public boolean pivotMode()Returns the value of thepivotMode
record component.- Returns:
- the value of the
pivotMode
record component
-
pivotCols
Returns the value of thepivotCols
record component.- Returns:
- the value of the
pivotCols
record component
-
groupKeys
Returns the value of thegroupKeys
record component.- Returns:
- the value of the
groupKeys
record component
-
sortModel
Returns the value of thesortModel
record component.- Returns:
- the value of the
sortModel
record component
-
requestContext
Returns the value of therequestContext
record component.- Returns:
- the value of the
requestContext
record component
-
rangeSelection
Returns the value of therangeSelection
record component.- Returns:
- the value of the
rangeSelection
record component
-
aggregationFunctions
Returns the value of theaggregationFunctions
record component.- Returns:
- the value of the
aggregationFunctions
record component
-