Class AbstractBackEndHierarchicalDataProvider<T,​F>

    • Constructor Detail

      • AbstractBackEndHierarchicalDataProvider

        public AbstractBackEndHierarchicalDataProvider()
    • Method Detail

      • isInMemory

        public boolean isInMemory()
        Description copied from interface: DataProvider
        Gets whether the DataProvider content all available in memory or does it use some external backend.
        Specified by:
        isInMemory in interface BackEndDataProvider<T,​F>
        Specified by:
        isInMemory in interface DataProvider<T,​F>
        Returns:
        true if all data is in memory; false if not
      • setSortOrders

        public void setSortOrders​(List<QuerySortOrder> sortOrders)
        Description copied from interface: BackEndDataProvider
        Sets a list of sort orders to use as the default sorting for this data provider. This overrides the sorting set by any other method that manipulates the default sorting of this data provider.

        The default sorting is used if the query defines no sorting. The default sorting is also used to determine the ordering of items that are considered equal by the sorting defined in the query.

        Specified by:
        setSortOrders in interface BackEndDataProvider<T,​F>
        Parameters:
        sortOrders - a list of sort orders to set, not null
        See Also:
        BackEndDataProvider.setSortOrder(QuerySortOrder)
      • fetchChildrenFromBackEnd

        protected abstract Stream<T> fetchChildrenFromBackEnd​(HierarchicalQuery<T,​F> query)
        Fetches data from the back end using the given query.
        Parameters:
        query - the query that defines sorting, filtering, paging and the parent item to fetch children from
        Returns:
        a stream of items matching the query
        See Also:
        HierarchicalQuery