org.kuali.kfs.gl.batch.service
Interface AccountBalanceCalculator

All Known Implementing Classes:
PostAccountBalance

public interface AccountBalanceCalculator

This interface declares the methods needed to update an account balance, based on a transaction.


Method Summary
 AccountBalance findAccountBalance(Collection balanceList, Transaction t)
          Given a collection of account balance records, returns either the account balance the given transaction should post against or a new account balance record
 void updateAccountBalance(Transaction t, AccountBalance ab)
          Updates the given account balance record, based on the given transaction
 

Method Detail

findAccountBalance

AccountBalance findAccountBalance(Collection balanceList,
                                  Transaction t)
Given a collection of account balance records, returns either the account balance the given transaction should post against or a new account balance record

Parameters:
balanceList - a Collection of AccountBalance records
t - the transaction to post
Returns:

updateAccountBalance

void updateAccountBalance(Transaction t,
                          AccountBalance ab)
Updates the given account balance record, based on the given transaction

Parameters:
t - the transaction to post
ab - the account balance being posted against


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.