HIT
- is the generic type of the result
of this query. Typically one of your
entities
but may also be a transfer object (in case of
constructor-query).public interface SearchQuery<HIT>
SearchCriteria
. public interface MyEntityDao extends GenericDao<Long, MyEntity> {SearchQuery
<MyEntity> findByCriteria(MySearchCriteria
criteria); }
Modifier and Type | Method and Description |
---|---|
long |
count()
This method performs a count query to determine the total number of hits (e.g.
|
SearchResult<HIT> |
search()
This method performs the actual search to get the
SearchResult . |
long count()
SearchResult<HIT> search()
SearchResult
. To prevent performance problems the
SearchResult
may be limited
according to the
maximum hit count
as well as by a
timeout
.Copyright © 2001–2016 mmm-Team. All rights reserved.