01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.chart.dao;
17:
18: import java.util.List;
19:
20: import org.kuali.module.chart.bo.SubAccount;
21:
22: /**
23: * This interface defines basic methods that SubAccount Dao's must provide
24: */
25: public interface SubAccountDao {
26:
27: /**
28: * Retrieves a {@link SubAccount} object by primary key.
29: *
30: * @param chartOfAccountsCode - part of composite key
31: * @param accountNumber - part of composite key
32: * @param subAccountNumber - part of composite key
33: * @return {@link SubAccount} by primary key
34: */
35: public SubAccount getByPrimaryId(String chartOfAccountsCode,
36: String accountNumber, String subAccountNumber);
37:
38: /**
39: * Retrieves {@link SubAccount} objects associated with the given chart-org-subAccount code combination
40: *
41: * @param chartOfAccountsCode - 'Reports To' Chart of Accounts Code
42: * @param organizationCode - 'Reports To' Organization Code
43: * @param subAccountNumber - Sub Account Number
44: * @return a list of {@link SubAccount} objects
45: */
46: public List getSubAccountsByReportsToOrganization(
47: String chartOfAccountsCode, String organizationCode,
48: String subAccountNumber);
49: }
|