Interface FetchEvent


public interface FetchEvent
Which component implements the Fetchable interface, in which case a custom query can also be set. In the case of a custom query, only the implementation of this interface can be specified. The (int, int, Criteria, List, Client) onFetch method of the interface is called when calling the # fetchData () method if a custom fetch ( setCustomFetch ).
Since:
4.0
Author:
JBStrap
  • Method Summary

    Modifier and Type
    Method
    Description
    onFetch(int startRow, int endRow, Criteria criteria, List<Order> orders, Client client)
    If a component implements the Fetchable interface, a custom query can be initiated.
  • Method Details

    • onFetch

      List<Record> onFetch(int startRow, int endRow, Criteria criteria, List<Order> orders, Client client)
      If a component implements the Fetchable interface, a custom query can be initiated. For a custom query, you can only specify an implementation of this interface. The onFetch method of the interface is called when calling the Fetchable.fetchData() method if a (setCustomFetch) is specified.
      Parameters:
      startRow - The first row of the query that appears in the returned list
      endRow - The last row of the query that appears in the returned list
      criteria - The criteria used during the query If null, no criteria will be used, every record is queried.
      orders - The orderings that will be applied to the query results. If null, the data will not be ordered.
      client - The client that started the query. If null, the query will happen without checking for access rights.
      Returns:
      The list of records that meet the specified filter criteria.