Interface FilterResultsFactory<M extends net.solarnetwork.domain.Identity<K>,K,F>

Type Parameters:
M - the data type
K - the key type
F - the filter type
All Known Implementing Classes:
BaseMyBatisFilterableDaoSupport, MyBatisUserMetadataDao
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FilterResultsFactory<M extends net.solarnetwork.domain.Identity<K>,K,F>
Factory API for creating filter results instances.
Since:
2.7
  • Method Summary

    Modifier and Type
    Method
    Description
    net.solarnetwork.dao.FilterResults<M,K>
    createFilterResults(F filter, Map<String,Object> sqlProps, Iterable<M> rows, Long totalCount, Integer offset, Integer returnedCount)
    Create a results instance from query results.
  • Method Details

    • createFilterResults

      net.solarnetwork.dao.FilterResults<M,K> createFilterResults(F filter, Map<String,Object> sqlProps, Iterable<M> rows, Long totalCount, Integer offset, Integer returnedCount)
      Create a results instance from query results.
      Parameters:
      filter - the query filter
      sqlProps - the SQL parameters
      rows - the resulting rows
      totalCount - the total count (or null if not known)
      offset - the offset of the first result
      returnedCount - the number of results returned
      Returns:
      the result instance