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.service;
17  
18  import java.util.List;
19  
20  import org.kuali.rice.krad.datadictionary.RelationshipDefinition;
21  import org.kuali.rice.krad.document.Document;
22  
23  /**
24   * Adapter that supports "legacy" KNS/KRAD persistence, metadata, and object utility frameworks via runtime
25   * argument inspection
26   *
27   * @deprecated This class is deprecated by default, applications should *never*
28   * use this adapter directly
29   *
30   * @author Kuali Rice Team (rice.collab@kuali.org).
31   */
32  @Deprecated
33  public interface LegacyDataAdapter extends LegacyDataAppAdapter {
34  
35      RelationshipDefinition getDictionaryRelationship(Class<?> c, String attributeName);
36  
37      // DocumentService
38  
39      /**
40       * Finds the Document for the specified class with the given id.
41       */
42      <T extends Document> T findByDocumentHeaderId(Class<T> documentClass, String id);
43  
44      /**
45       * Finds the Documents for the specified class with the given list of ids.
46       */
47      <T extends Document> List<T> findByDocumentHeaderIds(Class<T> documentClass, List<String> ids);
48  
49      public static final String CLASS_NOT_PERSISTABLE_OJB_EXCEPTION_CLASS = "org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException";
50      public static final String OPTIMISTIC_LOCK_OJB_EXCEPTION_CLASS = "org.apache.ojb.broker.OptimisticLockException";
51  }