View Javadoc
1   /**
2    * Copyright 2005-2014 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.PersistenceOption;
21  
22  /**
23   * Created with IntelliJ IDEA.
24   * User: aaron
25   * Date: 2/20/13
26   * Time: 2:47 PM
27   * To change this template use File | Settings | File Templates.
28   */
29  public class TestPersistenceProvider implements PersistenceProvider {
30      @Override
31      public <T> T save(T dataObject, PersistenceOption... options) {
32          return null;  //To change body of implemented methods use File | Settings | File Templates.
33      }
34  
35      @Override
36      public <T> T find(Class<T> type, Object id) {
37          return null;  //To change body of implemented methods use File | Settings | File Templates.
38      }
39  
40      @Override
41      public <T> QueryResults<T> findMatching(Class<T> type, QueryByCriteria queryByCriteria) {
42          return null;  //To change body of implemented methods use File | Settings | File Templates.
43      }
44  
45      @Override
46      public void delete(Object dataObject) {
47          //To change body of implemented methods use File | Settings | File Templates.
48      }
49  
50      @Override
51      public <T> T copyInstance(T dataObject) {
52          return null;
53      }
54  
55      @Override
56      public boolean handles(Class<?> type) {
57          return true;  //To change body of implemented methods use File | Settings | File Templates.
58      }
59  
60      @Override
61      public void flush(Class<?> type){
62      }
63  }