Interface RelationService.RelatableFinder<R extends Relatable>
- Enclosing interface:
- RelationService
public static interface RelationService.RelatableFinder<R extends Relatable>
Finder, which is used to perform basic relation operations, such as fetching source or target entities of
particular relation, get total number of related entities etc.
-
Method Summary
Modifier and TypeMethodDescriptionint
Get total number of related entitiesfetchMany
(PageRequest pageRequest, Expansion... expansions)
-
Method Details
-
fetchMany
- Parameters:
pageRequest
- the size of the page of results to returnexpansions
- the properties to expand on all of the returned entities- Returns:
- a page of results that have the given relation
- Throws:
ServiceException
-
fetchCount
int fetchCount()Get total number of related entities- Returns:
- total number of related entities
-