@Transactional public class PostBalance extends Object implements PostTransaction, BalanceCalculator
| Constructor and Description |
|---|
PostBalance()
Constructs a PostBalance instance
|
| Modifier and Type | Method and Description |
|---|---|
Balance |
findBalance(Collection balanceList,
Transaction t)
Given a list of balances, determines which one the given trsnaction should post to
|
String |
getDestinationName()
The name of the destination for the post (ie, the database table name where resultant records will be posted)
|
String |
post(Transaction t,
int mode,
Date postDate,
ReportWriterService posterReportWriterService)
This posts the effect of the transaction upon the appropriate balance record.
|
void |
setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService) |
void |
updateBalance(Transaction t,
Balance b)
Updates the balance based on the given transaction
|
public PostBalance()
public String post(Transaction t, int mode, Date postDate, ReportWriterService posterReportWriterService)
post in interface PostTransactiont - the transaction which is being postedmode - the mode the poster is currently running inpostDate - the date this transaction should post toposterReportWriterService - the writer service where the poster is writing its reportorg.kuali.kfs.gl.batch.service.PostTransaction#post(org.kuali.kfs.gl.businessobject.Transaction, int, java.util.Date)public Balance findBalance(Collection balanceList, Transaction t)
findBalance in interface BalanceCalculatorbalanceList - a Collection of balancest - the transaction that is being postedBalanceCalculator.findBalance(java.util.Collection, org.kuali.kfs.gl.businessobject.Transaction)public void updateBalance(Transaction t, Balance b)
BalanceCalculatorupdateBalance in interface BalanceCalculatort - enc - public String getDestinationName()
PostTransactiongetDestinationName in interface PostTransactionPostTransaction.getDestinationName()public void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.