org.kuali.kfs.gl.businessobject
Class LedgerEntryHolder

java.lang.Object
  extended by org.kuali.kfs.gl.businessobject.LedgerEntryHolder

public class LedgerEntryHolder
extends Object

A collection of many LedgerEntry records, which appropriately groups the records


Constructor Summary
LedgerEntryHolder()
          Constructs a LedgerEntryHolder.java.
 
Method Summary
 LedgerEntryForReporting getGrandTotal()
          Gets the grandTotal attribute.
 Map getLedgerEntries()
          Gets the ledgerEntries attribute.
 Map getSubtotals()
          Gets the subtotals attribute.
 void insertLedgerEntry(LedgerEntryForReporting newLedgerEntry, boolean calculateTotal)
          add a given ledger entry into the holder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LedgerEntryHolder

public LedgerEntryHolder()
Constructs a LedgerEntryHolder.java.

Method Detail

insertLedgerEntry

public void insertLedgerEntry(LedgerEntryForReporting newLedgerEntry,
                              boolean calculateTotal)
add a given ledger entry into the holder. If there exists a ledger entry with the same key, then update the amount and count fields of the ledger entry; otherwise, insert it into the holder.

Parameters:
newLedgerEntry - the given ledger entry
calculateTotals - indicate if the subtotals and grand total need to be calculated

getGrandTotal

public LedgerEntryForReporting getGrandTotal()
Gets the grandTotal attribute.

Returns:
Returns the grandTotal.

getLedgerEntries

public Map getLedgerEntries()
Gets the ledgerEntries attribute.

Returns:
Returns the ledgerEntries.

getSubtotals

public Map getSubtotals()
Gets the subtotals attribute.

Returns:
Returns the subtotals.


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