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