001/**
002 * Copyright 2005-2015 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.krad.data.provider;
017
018import org.kuali.rice.core.api.criteria.QueryByCriteria;
019import org.kuali.rice.core.api.criteria.QueryResults;
020import org.kuali.rice.krad.data.CopyOption;
021import org.kuali.rice.krad.data.PersistenceOption;
022
023public class TestPersistenceProvider implements PersistenceProvider {
024    @Override
025    public <T> T save(T dataObject, PersistenceOption... options) {
026        return null;
027    }
028
029    @Override
030    public <T> T find(Class<T> type, Object id) {
031        return null;
032    }
033
034    @Override
035    public <T> QueryResults<T> findMatching(Class<T> type, QueryByCriteria queryByCriteria) {
036        return null;
037    }
038
039    @Override
040    public <T> QueryResults<T> findAll(Class<T> type) {
041        return null;
042    }
043
044    @Override
045    public void delete(Object dataObject) {
046
047    }
048
049    @Override
050    public <T> void deleteMatching(Class<T> type, QueryByCriteria queryByCriteria) {
051
052    }
053
054    @Override
055    public <T> void deleteAll(Class<T> type) {
056
057    }
058
059    @Override
060        public <T> T copyInstance(T dataObject, CopyOption... options) {
061        return null;
062    }
063
064    @Override
065    public boolean handles(Class<?> type) {
066        return true;
067    }
068
069    @Override
070    public void flush(Class<?> type){
071    }
072}