1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.enrollment.class2.courseoffering.service.impl;
17
18 import org.kuali.rice.core.api.criteria.GenericQueryResults;
19 import org.kuali.rice.core.api.criteria.QueryByCriteria;
20 import org.kuali.student.common.mock.MockService;
21 import org.kuali.student.r2.common.criteria.CriteriaLookupService;
22 import org.kuali.student.r2.common.criteria.LookupCustomizer;
23
24 import java.util.ArrayList;
25 import java.util.List;
26
27
28
29
30
31
32 public class CriteriaLookupServiceMockImpl implements CriteriaLookupService,
33 MockService {
34 @Override
35 public <T> GenericQueryResults<T> lookup(Class<T> queryClass, QueryByCriteria criteria) {
36 GenericQueryResults.Builder<T> results = GenericQueryResults.Builder.<T>create();
37 results.setTotalRowCount(0);
38 results.setResults(new ArrayList<T>());
39 return results.build();
40 }
41
42 @Override
43 public <T> GenericQueryResults<T> lookup(Class<T> queryClass, QueryByCriteria criteria, LookupCustomizer<T> customizer) {
44 GenericQueryResults.Builder<T> results = GenericQueryResults.Builder.<T>create();
45 results.setTotalRowCount(0);
46 results.setResults(new ArrayList<T>());
47 return results.build();
48 }
49
50 @Override
51 public void clear() {
52
53 }
54
55 @Override
56 public <T> GenericQueryResults<String> lookupIds(Class<T> queryClass, QueryByCriteria criteria) {
57
58 return null;
59 }
60
61 @Override
62 public <T> GenericQueryResults<String> lookupIds(Class<T> queryClass, QueryByCriteria criteria, LookupCustomizer<T> customizer) {
63
64 return null;
65 }
66
67 @Override
68 public <T> GenericQueryResults<List<String>> genericLookup(final Class<T> queryClass, final QueryByCriteria criteria, List<String> fields){
69 return null;
70 }
71
72 @Override
73 public <T> GenericQueryResults<List<String>> genericLookup(final Class<T> queryClass, final QueryByCriteria criteria, final LookupCustomizer<T> customizer, List<String> fields){
74 return null;
75
76 }
77
78 }