Module ch.ralscha.extdirectspring
Package ch.ralscha.extdirectspring.bean
Class ExtDirectStoreReadRequest
java.lang.Object
ch.ralscha.extdirectspring.bean.ExtDirectStoreReadRequest
Represents the request of a DirectStore read call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllFiltersForField(String field) Returns all filters for a fieldgetDir()<T extends Filter>
TgetFirstFilterForField(String field) Returns the first filter for the field.getLimit()getPage()getQuery()getSort()getStart()booleanbooleanbooleanbooleanvoidvoidsetFilters(List<Filter> filters) voidsetGroupBy(String groupBy) voidsetGroupDir(String groupDir) voidvoidvoidvoidvoidvoidvoidsetSorters(List<SortInfo> sorters) voidtoString()
-
Constructor Details
-
ExtDirectStoreReadRequest
public ExtDirectStoreReadRequest()
-
-
Method Details
-
getQuery
- Returns:
- the text a user entered into a combobox with queryMode 'remote'
-
setQuery
-
getLimit
- Returns:
- the number of rows the DirectStore requests for paging
-
setLimit
-
getStart
- Returns:
- the start row from where to send records back for a paging request. start =
getLimit()* (getPage()-1)
-
setStart
-
getDir
- Returns:
- sorting order. "ASC" or "DESC".
Ext JS 4.x and Touch 2 can send more than one sorters. UsegetSorters()instead. - See Also:
-
setDir
-
isAscendingSort
public boolean isAscendingSort()- Returns:
- true if sorting order is ascending.
Ext JS 4.x and Touch 2 can send more than one sorters. UsegetSorters()instead.
-
isDescendingSort
public boolean isDescendingSort()- Returns:
- true if sorting order is descending.
Ext JS 4.x and Touch 2 can send more than one sorters. UsegetSorters()instead.
-
getSort
- Returns:
- the field/property on which the sort should be applied.
Ext JS 4.x and Touch 2 can send more than one sorters. UsegetSorters()instead.
-
setSort
-
getGroupBy
- Returns:
- the field/property name on which the grouping should occur.
Ext JS 4.x and Touch 2 can send more than one group info. UsegetGroups()instead.
-
setGroupBy
-
getGroupDir
- Returns:
- sorting order for a grouping request. "ASC" or "DESC".
Ext JS 4.x and Touch 2 can send more than one group info. UsegetGroups()instead.
-
setGroupDir
-
isAscendingGroupSort
public boolean isAscendingGroupSort()- Returns:
- true if grouping sorting order is ascending.
Ext JS 4.x and Touch 2 can send more than one group info. UsegetGroups()instead.
-
isDescendingGroupSort
public boolean isDescendingGroupSort()- Returns:
- true if grouping sorting order is descending.
Ext JS 4.x and Touch 2 can send more than one group info. UsegetGroups()instead.
-
getFilters
- Returns:
- collection of filter implementations
- See Also:
-
getFirstFilterForField
Returns the first filter for the field.- Parameters:
field- name of the field- Returns:
- the first filter for the field. Null if not filter exists.
-
getAllFiltersForField
Returns all filters for a field- Parameters:
field- name of the field- Returns:
- a collection of filters for the field. Empty collection if no filter exists
-
setFilters
-
getPage
- Returns:
- page number of a paging request. page = (
getStart()/getLimit()) + 1
-
setPage
-
getSorters
-
setSorters
-
getGroups
-
setGroups
-
getParams
- Returns:
- a map with all the keys and values from
extraParams
-
setParams
-
toString
-