View Javadoc

1   /*
2    * Copyright 2007-2008 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  
17  package org.kuali.ole.module.purap.document.dataaccess;
18  
19  import org.kuali.ole.module.purap.businessobject.ReceivingAddress;
20  
21  import java.util.Collection;
22  
23  /**
24   * Receiving Address DAO Interface.
25   */
26  public interface ReceivingAddressDao {
27  
28      /**
29       * Finds all of the active receiving addresses with the specified chart/org code.
30       *
31       * @param chartCode - chart of accounts code.
32       * @param orgCode   - organization code.
33       * @return - collection of receiving addresses found.
34       */
35      public Collection<ReceivingAddress> findActiveByChartOrg(String chartCode, String orgCode);
36  
37      /**
38       * Finds all of the active default receiving addresses with the specified chart/org code.
39       *
40       * @param chartCode - chart of accounts code.
41       * @param orgCode   - organization code.
42       * @return - collection of receiving addresses found.
43       */
44      public Collection<ReceivingAddress> findDefaultByChartOrg(String chartCode, String orgCode);
45  
46      /**
47       * Counts the number of the active receiving addresses with the specified chart/org code.
48       *
49       * @param chartCode - chart of accounts code.
50       * @param orgCode   - organization code.
51       * @return - number of receiving addresses found.
52       */
53      public int countActiveByChartOrg(String chartCode, String orgCode);
54  
55  }
56