Package cz.encircled.joiner.core
Interface JoinerRepository<T>
public interface JoinerRepository<T>
Base interface for repositories with joiner support. Can be used for repository-per-entity approach
- Author:
- Kisel on 11.01.2016.
-
Method Summary
Modifier and TypeMethodDescriptionfind(JoinerQuery<U, R> request) Find multiple objects for given parameters<R,U extends T>
RfindOne(JoinerQuery<U, R> request) Find one object (or null) for given parameters
-
Method Details
-
find
Find multiple objects for given parameters- Type Parameters:
R- type of result objectU- type of "from"- Parameters:
request- request with parameters- Returns:
- list of found objects, not null
-
findOne
Find one object (or null) for given parameters- Type Parameters:
R- type of result objectU- type of "from"- Parameters:
request- request with parameters- Returns:
- found object or null
- Throws:
JoinerException- if query returns multiple results
-