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

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

@Transactional
public class PostSufficientFundBalances
extends Object
implements PostTransaction

An implementation of PostTransaction which posts a transaction to the appropriate sufficient funds record


Constructor Summary
PostSufficientFundBalances()
          Constructs a PostSufficientFundBalances instance
 
Method Summary
 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 sufficient funds records
 void setAccountingCycleCachingService(AccountingCycleCachingService accountingCycleCachingService)
           
 void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
           
protected  void updateBudgetAmount(String debitCreditCode, SufficientFundBalances bal, org.kuali.rice.kns.util.KualiDecimal amount)
          Updates the budget amount of a given sufficient funds balance record
protected  void updateEncumbranceAmount(String debitCreditCode, SufficientFundBalances bal, org.kuali.rice.kns.util.KualiDecimal amount)
          Updates the encumbrance amount of a given sufficient funds balance record
protected  void updateExpendedAmount(String debitCreditCode, SufficientFundBalances bal, org.kuali.rice.kns.util.KualiDecimal amount)
          Updates the expenditure amount of a given sufficient funds balance record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostSufficientFundBalances

public PostSufficientFundBalances()
Constructs a PostSufficientFundBalances instance

Method Detail

post

public String post(Transaction t,
                   int mode,
                   Date postDate,
                   ReportWriterService posterReportWriterService)
Posts the transaction to the appropriate sufficient funds records

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)

updateExpendedAmount

protected void updateExpendedAmount(String debitCreditCode,
                                    SufficientFundBalances bal,
                                    org.kuali.rice.kns.util.KualiDecimal amount)
Updates the expenditure amount of a given sufficient funds balance record

Parameters:
debitCreditCode - whether the the amount should be debited or credited to the SF balance
bal - a sufficient funds balance to update
amount - the amount to debit or credit

updateEncumbranceAmount

protected void updateEncumbranceAmount(String debitCreditCode,
                                       SufficientFundBalances bal,
                                       org.kuali.rice.kns.util.KualiDecimal amount)
Updates the encumbrance amount of a given sufficient funds balance record

Parameters:
debitCreditCode - whether the the amount should be debited or credited to the SF balance
bal - a sufficient funds balance to update
amount - the amount to debit or credit

updateBudgetAmount

protected void updateBudgetAmount(String debitCreditCode,
                                  SufficientFundBalances bal,
                                  org.kuali.rice.kns.util.KualiDecimal amount)
Updates the budget amount of a given sufficient funds balance record

Parameters:
debitCreditCode - whether the the amount should be debited or credited to the SF balance
bal - a sufficient funds balance to update
amount - the amount to debit or credit

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
See Also:
PostTransaction.getDestinationName()

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.