org.kuali.kfs.module.ld.batch.service.impl
Class LaborGLLedgerEntryPoster

java.lang.Object
  extended by org.kuali.kfs.module.ld.batch.service.impl.LaborGLLedgerEntryPoster
All Implemented Interfaces:
PostTransaction

@Transactional
public class LaborGLLedgerEntryPoster
extends Object
implements PostTransaction

This class is used to post a transaction into labor GL entry table


Constructor Summary
LaborGLLedgerEntryPoster()
           
 
Method Summary
protected  String getDebitCreditCode(Transaction transaction)
           
 String getDestinationName()
          The name of the destination for the post (ie, the database table name where resultant records will be posted)
protected  String getEncumbranceUpdateCode(Transaction transaction)
           
protected  org.kuali.rice.kns.util.KualiDecimal getTransactionAmount(Transaction transaction)
           
 String post(Transaction transaction, int mode, Date postDate, ReportWriterService posterReportWriterService)
          Post a single transaction to a single destination.
 void setLaborGeneralLedgerEntryService(LaborGeneralLedgerEntryService laborGeneralLedgerEntryService)
          Sets the laborGeneralLedgerEntryService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaborGLLedgerEntryPoster

public LaborGLLedgerEntryPoster()
Method Detail

post

public String post(Transaction transaction,
                   int mode,
                   Date postDate,
                   ReportWriterService posterReportWriterService)
Description copied from interface: PostTransaction
Post a single transaction to a single destination.

Specified by:
post in interface PostTransaction
Parameters:
transaction - Transaction to post
mode - PosterService.MODE_ENTRIES or PosterService.MODE_REVERSAL
postDate - post date/time
posterReportWriterService - the writer service where the poster is writing its report
Returns:
The letter I if a row was inserted, U updated, D deleted. The string can have multiple codes.
See Also:
org.kuali.kfs.gl.batch.service.PostTransaction#post(org.kuali.kfs.gl.businessobject.Transaction, int, java.util.Date)

getDebitCreditCode

protected String getDebitCreditCode(Transaction transaction)
Returns:
the debit credit code

getTransactionAmount

protected org.kuali.rice.kns.util.KualiDecimal getTransactionAmount(Transaction transaction)
Returns:
the transaction amount

getEncumbranceUpdateCode

protected String getEncumbranceUpdateCode(Transaction transaction)
Returns:
the encumbrance update code

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()

setLaborGeneralLedgerEntryService

public void setLaborGeneralLedgerEntryService(LaborGeneralLedgerEntryService laborGeneralLedgerEntryService)
Sets the laborGeneralLedgerEntryService attribute value.

Parameters:
laborGeneralLedgerEntryService - The laborGeneralLedgerEntryService to set.


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