001/* 002 * Copyright 2009 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.gl.batch.dataaccess; 017 018import java.sql.Timestamp; 019 020import org.kuali.ole.gl.businessobject.AccountBalance; 021import org.kuali.ole.gl.businessobject.Balance; 022import org.kuali.ole.gl.businessobject.Encumbrance; 023import org.kuali.ole.gl.businessobject.Entry; 024import org.kuali.ole.gl.businessobject.ExpenditureTransaction; 025import org.kuali.ole.gl.businessobject.Reversal; 026import org.kuali.ole.gl.businessobject.SufficientFundBalances; 027import org.kuali.ole.gl.businessobject.Transaction; 028import org.kuali.ole.sys.batch.dataaccess.PreparedStatementCachingDao; 029 030public interface LedgerPreparedStatementCachingDao extends PreparedStatementCachingDao { 031 public int getMaxSequenceNumber(Transaction t); 032 033 034 public Balance getBalance(Transaction t); 035 036 public void insertBalance(Balance balance, Timestamp currentTimestamp); 037 038 public void updateBalance(Balance balance, Timestamp currentTimestamp); 039 040 public Encumbrance getEncumbrance(Entry entry); 041 042 public void insertEncumbrance(Encumbrance encumbrance, Timestamp currentTimestamp); 043 044 public void updateEncumbrance(Encumbrance encumbrance, Timestamp currentTimestamp); 045 046 public ExpenditureTransaction getExpenditureTransaction(Transaction t); 047 048 public void insertExpenditureTransaction(ExpenditureTransaction expenditureTransaction); 049 050 public void updateExpenditureTransaction(ExpenditureTransaction expenditureTransaction); 051 052 public SufficientFundBalances getSufficientFundBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String financialObjectCode); 053 054 public void insertSufficientFundBalances(SufficientFundBalances sufficientFundBalances, Timestamp currentTimestamp); 055 056 public void updateSufficientFundBalances(SufficientFundBalances sufficientFundBalances, Timestamp currentTimestamp); 057 058 public AccountBalance getAccountBalance(Transaction t); 059 060 public void insertAccountBalance(AccountBalance accountBalance, Timestamp currentTimestamp); 061 062 public void updateAccountBalance(AccountBalance accountBalance, Timestamp currentTimestamp); 063 064 065 public void insertReversal(Reversal reversal); 066 067 public void insertEntry(Entry entry, Timestamp currentTimestamp); 068}