View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }