org.kuali.kfs.gl.batch.service.impl
Class PostAccountBalance

java.lang.Object
  extended by org.kuali.kfs.gl.batch.service.impl.PostAccountBalance
All Implemented Interfaces:
AccountBalanceCalculator, PostTransaction

@Transactional
public class PostAccountBalance
extends Object
implements PostTransaction, AccountBalanceCalculator


Constructor Summary
PostAccountBalance()
          Constructs a PostAccountBalance instance
 
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
 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)
          Posts the transaction to the appropriate account balance record.
 void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
           
 void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
           
 void updateAccountBalance(Transaction t, AccountBalance ab)
          Updates the given account balance record, based on the given transaction
protected  boolean updateAccountBalanceReturn(Transaction t, AccountBalance ab)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostAccountBalance

public PostAccountBalance()
Constructs a PostAccountBalance instance

Method Detail

post

public String post(Transaction t,
                   int mode,
                   Date postDate,
                   ReportWriterService posterReportWriterService)
Posts the transaction to the appropriate account balance record.

Specified by:
post in interface PostTransaction
Parameters:
t - the transaction which is being posted
mode - the mode the poster is currently running in
postDate - the date this transaction should post to
posterReportWriterService - the writer service where the poster is writing its report
Returns:
the accomplished post type
See Also:
org.kuali.kfs.gl.batch.service.PostTransaction#post(org.kuali.kfs.gl.businessobject.Transaction, int, java.util.Date)

findAccountBalance

public AccountBalance findAccountBalance(Collection balanceList,
                                         Transaction t)
Description copied from interface: AccountBalanceCalculator
Given a collection of account balance records, returns either the account balance the given transaction should post against or a new account balance record

Specified by:
findAccountBalance in interface AccountBalanceCalculator
Parameters:
balanceList - a Collection of AccountBalance records
t - the transaction to post
Returns:

updateAccountBalanceReturn

protected boolean updateAccountBalanceReturn(Transaction t,
                                             AccountBalance ab)

updateAccountBalance

public void updateAccountBalance(Transaction t,
                                 AccountBalance ab)
Description copied from interface: AccountBalanceCalculator
Updates the given account balance record, based on the given transaction

Specified by:
updateAccountBalance in interface AccountBalanceCalculator
Parameters:
t -
enc -

getDestinationName

public String getDestinationName()
Description copied from interface: PostTransaction
The name of the destination for the post (ie, the database table name where resultant records will be posted)

Specified by:
getDestinationName in interface PostTransaction
Returns:
name

setAccountingCycleCachingService

public void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)

setPersistenceStructureService

public void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)


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