001/** 002 * Copyright 2005-2018 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.service; 017 018import java.util.List; 019 020import org.kuali.rice.krad.datadictionary.RelationshipDefinition; 021import org.kuali.rice.krad.document.Document; 022 023/** 024 * Adapter that supports "legacy" KNS/KRAD persistence, metadata, and object utility frameworks via runtime 025 * argument inspection 026 * 027 * @deprecated This class is deprecated by default, applications should *never* 028 * use this adapter directly 029 * 030 * @author Kuali Rice Team (rice.collab@kuali.org). 031 */ 032@Deprecated 033public interface LegacyDataAdapter extends LegacyDataAppAdapter { 034 035 RelationshipDefinition getDictionaryRelationship(Class<?> c, String attributeName); 036 037 // DocumentService 038 039 /** 040 * Finds the Document for the specified class with the given id. 041 */ 042 <T extends Document> T findByDocumentHeaderId(Class<T> documentClass, String id); 043 044 /** 045 * Finds the Documents for the specified class with the given list of ids. 046 */ 047 <T extends Document> List<T> findByDocumentHeaderIds(Class<T> documentClass, List<String> ids); 048 049 public static final String CLASS_NOT_PERSISTABLE_OJB_EXCEPTION_CLASS = "org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException"; 050 public static final String OPTIMISTIC_LOCK_OJB_EXCEPTION_CLASS = "org.apache.ojb.broker.OptimisticLockException"; 051}