Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CriteriaLookupService |
|
| 1.0;1 |
1 | package org.kuali.student.r2.common.criteria; | |
2 | ||
3 | import org.kuali.rice.core.api.criteria.GenericQueryResults; | |
4 | import org.kuali.rice.core.api.criteria.QueryByCriteria; | |
5 | ||
6 | public interface CriteriaLookupService { | |
7 | ||
8 | /** | |
9 | * Looks up a type based on a query criteria. | |
10 | * | |
11 | * @param queryClass the class to lookup | |
12 | * @param criteria the criteria to lookup against. cannot be null. | |
13 | * @param <T> the type that is being looked up. | |
14 | * @return the results. will never be null. | |
15 | * @throws IllegalArgumentException if the criteria is null | |
16 | */ | |
17 | <T> GenericQueryResults<T> lookup(final Class<T> queryClass, final QueryByCriteria criteria); | |
18 | ||
19 | /** | |
20 | * Looks up a type based on a query criteria. | |
21 | * | |
22 | * @param queryClass the class to lookup | |
23 | * @param criteria the criteria to lookup against. cannot be null. | |
24 | * @param <T> the type that is being looked up. | |
25 | * @return the results. will never be null. | |
26 | * @throws IllegalArgumentException if the criteria is null | |
27 | */ | |
28 | <T> GenericQueryResults<T> lookup(final Class<T> queryClass, final QueryByCriteria criteria, final LookupCustomizer<T> customizer); | |
29 | ||
30 | } |