1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.data.provider;
17
18 import org.kuali.rice.core.api.criteria.QueryByCriteria;
19 import org.kuali.rice.core.api.criteria.QueryResults;
20 import org.kuali.rice.krad.data.CopyOption;
21 import org.kuali.rice.krad.data.PersistenceOption;
22
23 public class TestPersistenceProvider implements PersistenceProvider {
24 @Override
25 public <T> T save(T dataObject, PersistenceOption... options) {
26 return null;
27 }
28
29 @Override
30 public <T> T find(Class<T> type, Object id) {
31 return null;
32 }
33
34 @Override
35 public <T> QueryResults<T> findMatching(Class<T> type, QueryByCriteria queryByCriteria) {
36 return null;
37 }
38
39 @Override
40 public <T> QueryResults<T> findAll(Class<T> type) {
41 return null;
42 }
43
44 @Override
45 public void delete(Object dataObject) {
46
47 }
48
49 @Override
50 public <T> void deleteMatching(Class<T> type, QueryByCriteria queryByCriteria) {
51
52 }
53
54 @Override
55 public <T> void deleteAll(Class<T> type) {
56
57 }
58
59 @Override
60 public <T> T copyInstance(T dataObject, CopyOption... options) {
61 return null;
62 }
63
64 @Override
65 public boolean handles(Class<?> type) {
66 return true;
67 }
68
69 @Override
70 public void flush(Class<?> type){
71 }
72 }