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

java.lang.Object
  extended by org.kuali.kfs.gl.batch.service.impl.OriginEntryTotals

public class OriginEntryTotals
extends Object

This class holds information about the sums of a list of origin entries. This information includes total credit amount, debit amount, other amount, number of credit entries, number of debit entries, and number of "other" entries


Field Summary
protected  org.kuali.rice.kns.util.KualiDecimal creditAmount
           
protected  org.kuali.rice.kns.util.KualiDecimal debitAmount
           
protected  int numCreditEntries
           
protected  int numDebitEntries
           
protected  int numOtherEntries
           
protected  org.kuali.rice.kns.util.KualiDecimal otherAmount
           
 
Constructor Summary
OriginEntryTotals()
           
 
Method Summary
 void addToTotals(Iterator<OriginEntryFull> entries)
          This method adds amount from origin entries and increments number totals for the appropriate type (i.e.
 void addToTotals(OriginEntryFull originEntry)
          This method adds amount from origin entry and increments number totals for the appropriate type (i.e.
 org.kuali.rice.kns.util.KualiDecimal getCreditAmount()
          Gets the creditAmount attribute.
 org.kuali.rice.kns.util.KualiDecimal getDebitAmount()
          Gets the debitAmount attribute.
 int getNumCreditEntries()
          Gets the numCreditEntries attribute.
 int getNumDebitEntries()
          Gets the numDebitEntries attribute.
 int getNumOtherEntries()
          Gets the numOtherEntries attribute.
 org.kuali.rice.kns.util.KualiDecimal getOtherAmount()
          Gets the otherAmount attribute.
 void incorporateTotals(OriginEntryTotals anotherTotals)
          Adds up the values in the parameter totals object to the corresponding fields in this object
 void setCreditAmount(org.kuali.rice.kns.util.KualiDecimal creditAmount)
          Sets the creditAmount attribute value.
 void setDebitAmount(org.kuali.rice.kns.util.KualiDecimal debitAmount)
          Sets the debitAmount attribute value.
 void setNumCreditEntries(int numCreditEntries)
          Sets the numCreditEntries attribute value.
 void setNumDebitEntries(int numDebitEntries)
          Sets the numDebitEntries attribute value.
 void setNumOtherEntries(int numOtherEntries)
          Sets the numOtherEntries attribute value.
 void setOtherAmount(org.kuali.rice.kns.util.KualiDecimal otherAmount)
          Sets the otherAmount attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

creditAmount

protected org.kuali.rice.kns.util.KualiDecimal creditAmount

debitAmount

protected org.kuali.rice.kns.util.KualiDecimal debitAmount

otherAmount

protected org.kuali.rice.kns.util.KualiDecimal otherAmount

numCreditEntries

protected int numCreditEntries

numDebitEntries

protected int numDebitEntries

numOtherEntries

protected int numOtherEntries
Constructor Detail

OriginEntryTotals

public OriginEntryTotals()
Method Detail

getCreditAmount

public org.kuali.rice.kns.util.KualiDecimal getCreditAmount()
Gets the creditAmount attribute.

Returns:
Returns the creditAmount.

setCreditAmount

public void setCreditAmount(org.kuali.rice.kns.util.KualiDecimal creditAmount)
Sets the creditAmount attribute value.

Parameters:
creditAmount - The creditAmount to set.

getDebitAmount

public org.kuali.rice.kns.util.KualiDecimal getDebitAmount()
Gets the debitAmount attribute.

Returns:
Returns the debitAmount.

setDebitAmount

public void setDebitAmount(org.kuali.rice.kns.util.KualiDecimal debitAmount)
Sets the debitAmount attribute value.

Parameters:
debitAmount - The debitAmount to set.

getNumCreditEntries

public int getNumCreditEntries()
Gets the numCreditEntries attribute.

Returns:
Returns the numCreditEntries.

setNumCreditEntries

public void setNumCreditEntries(int numCreditEntries)
Sets the numCreditEntries attribute value.

Parameters:
numCreditEntries - The numCreditEntries to set.

getNumDebitEntries

public int getNumDebitEntries()
Gets the numDebitEntries attribute.

Returns:
Returns the numDebitEntries.

setNumDebitEntries

public void setNumDebitEntries(int numDebitEntries)
Sets the numDebitEntries attribute value.

Parameters:
numDebitEntries - The numDebitEntries to set.

getNumOtherEntries

public int getNumOtherEntries()
Gets the numOtherEntries attribute.

Returns:
Returns the numOtherEntries.

setNumOtherEntries

public void setNumOtherEntries(int numOtherEntries)
Sets the numOtherEntries attribute value.

Parameters:
numOtherEntries - The numOtherEntries to set.

getOtherAmount

public org.kuali.rice.kns.util.KualiDecimal getOtherAmount()
Gets the otherAmount attribute.

Returns:
Returns the otherAmount.

setOtherAmount

public void setOtherAmount(org.kuali.rice.kns.util.KualiDecimal otherAmount)
Sets the otherAmount attribute value.

Parameters:
otherAmount - The otherAmount to set.

addToTotals

public void addToTotals(Iterator<OriginEntryFull> entries)
This method adds amount from origin entries and increments number totals for the appropriate type (i.e. credit, debit, or other).

Parameters:
entries -

addToTotals

public void addToTotals(OriginEntryFull originEntry)
This method adds amount from origin entry and increments number totals for the appropriate type (i.e. credit, debit, or other).

Parameters:
entry -

incorporateTotals

public void incorporateTotals(OriginEntryTotals anotherTotals)
Adds up the values in the parameter totals object to the corresponding fields in this object

Parameters:
anotherTotals - another OriginEntryTotals to add to this OriginEntryTotals totals


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