View Javadoc
1   /*
2    * Copyright 2009 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.dataaccess;
17  
18  import java.sql.Timestamp;
19  
20  import org.kuali.ole.gl.businessobject.AccountBalance;
21  import org.kuali.ole.gl.businessobject.Balance;
22  import org.kuali.ole.gl.businessobject.Encumbrance;
23  import org.kuali.ole.gl.businessobject.Entry;
24  import org.kuali.ole.gl.businessobject.ExpenditureTransaction;
25  import org.kuali.ole.gl.businessobject.Reversal;
26  import org.kuali.ole.gl.businessobject.SufficientFundBalances;
27  import org.kuali.ole.gl.businessobject.Transaction;
28  import org.kuali.ole.sys.batch.dataaccess.PreparedStatementCachingDao;
29  
30  public interface LedgerPreparedStatementCachingDao extends PreparedStatementCachingDao {
31      public int getMaxSequenceNumber(Transaction t);
32  
33  
34      public Balance getBalance(Transaction t);
35  
36      public void insertBalance(Balance balance, Timestamp currentTimestamp);
37  
38      public void updateBalance(Balance balance, Timestamp currentTimestamp);
39  
40      public Encumbrance getEncumbrance(Entry entry);
41  
42      public void insertEncumbrance(Encumbrance encumbrance, Timestamp currentTimestamp);
43  
44      public void updateEncumbrance(Encumbrance encumbrance, Timestamp currentTimestamp);
45  
46      public ExpenditureTransaction getExpenditureTransaction(Transaction t);
47  
48      public void insertExpenditureTransaction(ExpenditureTransaction expenditureTransaction);
49  
50      public void updateExpenditureTransaction(ExpenditureTransaction expenditureTransaction);
51  
52      public SufficientFundBalances getSufficientFundBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String financialObjectCode);
53  
54      public void insertSufficientFundBalances(SufficientFundBalances sufficientFundBalances, Timestamp currentTimestamp);
55  
56      public void updateSufficientFundBalances(SufficientFundBalances sufficientFundBalances, Timestamp currentTimestamp);
57  
58      public AccountBalance getAccountBalance(Transaction t);
59  
60      public void insertAccountBalance(AccountBalance accountBalance, Timestamp currentTimestamp);
61  
62      public void updateAccountBalance(AccountBalance accountBalance, Timestamp currentTimestamp);
63  
64  
65      public void insertReversal(Reversal reversal);
66  
67      public void insertEntry(Entry entry, Timestamp currentTimestamp);
68  }