Package net.solarnetwork.central.dao
Interface FilterableDao<M extends FilterMatch<PK>,PK extends Serializable,F extends Filter>
- Type Parameters:
M- the domain object typePK- the primary key typeF- the filter type
- All Known Subinterfaces:
SolarLocationDao,SolarNodeDao,SolarNodeMetadataDao
- All Known Implementing Classes:
BaseMyBatisFilterableDao,MyBatisSolarLocationDao,MyBatisSolarNodeDao,MyBatisSolarNodeMetadataDao
public interface FilterableDao<M extends FilterMatch<PK>,PK extends Serializable,F extends Filter>
API for DAOs that support filtered queries.
-
Method Summary
Modifier and TypeMethodDescriptionfindFiltered(F filter, List<net.solarnetwork.domain.SortDescriptor> sortDescriptors, Integer offset, Integer max) API for querying for a filtered set of results from all possible results.
-
Method Details
-
findFiltered
FilterResults<M> findFiltered(F filter, List<net.solarnetwork.domain.SortDescriptor> sortDescriptors, Integer offset, Integer max) API for querying for a filtered set of results from all possible results.- Parameters:
filter- the query filtersortDescriptors- the optional sort descriptorsoffset- an optional result offsetmax- an optional maximum number of returned results- Returns:
- the results, never null
-