@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 PostTransaction
t
- 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.ole.gl.batch.service.PostTransaction#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)
public Balance findBalance(Collection balanceList, Transaction t)
findBalance
in interface BalanceCalculator
balanceList
- a Collection of balancest
- the transaction that is being postedBalanceCalculator.findBalance(java.util.Collection, org.kuali.ole.gl.businessobject.Transaction)
public void updateBalance(Transaction t, Balance b)
BalanceCalculator
updateBalance
in interface BalanceCalculator
t
- enc
- public String getDestinationName()
PostTransaction
getDestinationName
in interface PostTransaction
PostTransaction.getDestinationName()
public void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.