View Javadoc

1   /*
2    * Copyright 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  package org.kuali.ole.gl.batch.service;
17  
18  import java.sql.Date;
19  
20  import org.kuali.ole.coa.businessobject.A21SubAccount;
21  import org.kuali.ole.coa.businessobject.Account;
22  import org.kuali.ole.coa.businessobject.AccountingPeriod;
23  import org.kuali.ole.coa.businessobject.BalanceType;
24  import org.kuali.ole.coa.businessobject.Chart;
25  import org.kuali.ole.coa.businessobject.IndirectCostRecoveryType;
26  import org.kuali.ole.coa.businessobject.ObjectCode;
27  import org.kuali.ole.coa.businessobject.ObjectLevel;
28  import org.kuali.ole.coa.businessobject.ObjectType;
29  import org.kuali.ole.coa.businessobject.OffsetDefinition;
30  import org.kuali.ole.coa.businessobject.Organization;
31  import org.kuali.ole.coa.businessobject.ProjectCode;
32  import org.kuali.ole.coa.businessobject.SubAccount;
33  import org.kuali.ole.coa.businessobject.SubFundGroup;
34  import org.kuali.ole.coa.businessobject.SubObjectCode;
35  import org.kuali.ole.gl.businessobject.AccountBalance;
36  import org.kuali.ole.gl.businessobject.Balance;
37  import org.kuali.ole.gl.businessobject.Encumbrance;
38  import org.kuali.ole.gl.businessobject.Entry;
39  import org.kuali.ole.gl.businessobject.ExpenditureTransaction;
40  import org.kuali.ole.gl.businessobject.Reversal;
41  import org.kuali.ole.gl.businessobject.SufficientFundBalances;
42  import org.kuali.ole.gl.businessobject.Transaction;
43  import org.kuali.ole.sys.batch.service.WrappingBatchService;
44  import org.kuali.ole.sys.businessobject.OriginationCode;
45  import org.kuali.ole.sys.businessobject.SystemOptions;
46  import org.kuali.ole.sys.businessobject.UniversityDate;
47  
48  public interface AccountingCycleCachingService extends WrappingBatchService {
49      public boolean isCurrentActiveAccountingDocumentType(String documentTypeCode);
50  
51      public SystemOptions getSystemOptions(Integer fiscalYear);
52  
53      public OriginationCode getOriginationCode(String financialSystemOriginationCode);
54  
55  
56      public Chart getChart(String chartOfAccountsCode);
57  
58      public Account getAccount(String chartCode, String accountNumber);
59  
60      public ObjectCode getObjectCode(Integer universityFiscalYear, String chartOfAccountsCode, String financialObjectCode);
61  
62      public BalanceType getBalanceType(String financialBalanceTypeCode);
63  
64      public ObjectType getObjectType(String financialObjectTypeCode);
65  
66      public SubAccount getSubAccount(String chartOfAccountsCode, String accountNumber, String subAccountNumber);
67  
68      public A21SubAccount getA21SubAccount(String chartOfAccountsCode, String accountNumber, String subAccountNumber);
69  
70      public SubObjectCode getSubObjectCode(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String financialObjectCode, String financialSubObjectCode);
71  
72      public IndirectCostRecoveryType getIndirectCostRecoveryType(String accountIcrTypeCode);
73  
74      public ProjectCode getProjectCode(String projectCode);
75  
76      public AccountingPeriod getAccountingPeriod(Integer fiscalYear, String fiscalPeriodCode);
77  
78      public SubFundGroup getSubFundGroup(String subFundGroupCode);
79  
80      public UniversityDate getUniversityDate(Date date);
81  
82      public OffsetDefinition getOffsetDefinition(Integer universityFiscalYear, String chartOfAccountsCode, String financialDocumentTypeCode, String financialBalanceTypeCode);
83  
84      public Organization getOrganization(String chartOfAccountsCode, String organizationCode);
85  
86      public ObjectLevel getObjectLevel(String chartOfAccountsCode, String financialObjectLevelCode);
87  
88  
89      public int getMaxSequenceNumber(Transaction t);
90  
91  
92      public Balance getBalance(Transaction t);
93  
94      public Encumbrance getEncumbrance(Entry entry);
95  
96      public ExpenditureTransaction getExpenditureTransaction(Transaction t);
97  
98      public SufficientFundBalances getSufficientFundBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String financialObjectCode);
99  
100     public AccountBalance getAccountBalance(Transaction t);
101 
102 
103     public void insertReversal(Reversal reversal);
104 
105     public void insertEntry(Entry entry);
106 
107     public void insertBalance(Balance balance);
108 
109     public void updateBalance(Balance balance);
110 
111     public void insertEncumbrance(Encumbrance encumbrance);
112 
113     public void updateEncumbrance(Encumbrance encumbrance);
114 
115     public void insertExpenditureTransaction(ExpenditureTransaction expenditureTransaction);
116 
117     public void updateExpenditureTransaction(ExpenditureTransaction expenditureTransaction);
118 
119     public void insertSufficientFundBalances(SufficientFundBalances sufficientFundBalances);
120 
121     public void updateSufficientFundBalances(SufficientFundBalances sufficientFundBalances);
122 
123     public void insertAccountBalance(AccountBalance accountBalance);
124 
125     public void updateAccountBalance(AccountBalance accountBalance);
126 }