T - bean typeF - filter typepublic class HierarchicalQuery<T,F> extends Query<T,F>
| Constructor and Description |
|---|
HierarchicalQuery(F filter,
T parent)
Constructs a new hierarchical query object with given filter and parent
node.
|
HierarchicalQuery(int offset,
int limit,
List<QuerySortOrder> sortOrders,
Comparator<T> inMemorySorting,
F filter,
T parent)
Constructs a new hierarchical query object with given offset, limit,
sorting and filtering.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getParent()
Get the hierarchical parent object, where
null corresponds
to the root node. |
Optional<T> |
getParentOptional()
Get an Optional of the hierarchical parent object.
|
getFilter, getInMemorySorting, getLimit, getOffset, getSortingComparator, getSortOrderspublic HierarchicalQuery(F filter, T parent)
filter - filtering for fetching; can be nullparent - the hierarchical parent object, null
corresponding to the root nodepublic HierarchicalQuery(int offset,
int limit,
List<QuerySortOrder> sortOrders,
Comparator<T> inMemorySorting,
F filter,
T parent)
offset - first index to fetchlimit - fetched item countsortOrders - sorting order for fetching; used for sorting backendsinMemorySorting - comparator for sorting in-memory datafilter - filtering for fetching; can be nullparent - the hierarchical parent object, null
corresponding to the root nodepublic T getParent()
null corresponds
to the root node.public Optional<T> getParentOptional()
getParent() wrapped by an OptionalgetParent()Copyright © 2025. All rights reserved.