public class LedgerEntry extends Object
Constructor and Description |
---|
LedgerEntry()
Constructs a LedgerEntry.java.
|
LedgerEntry(Integer fiscalYear,
String period,
String balanceType,
String originCode)
Constructs a LedgerEntry.java.
|
LedgerEntry(Integer fiscalYear,
String period,
String balanceType,
String originCode,
String debitCreditCode,
org.kuali.rice.core.api.util.type.KualiDecimal amount,
int count)
Constructs a LedgerEntry.java.
|
Modifier and Type | Method and Description |
---|---|
void |
add(LedgerEntry addend)
Add the amounts of the given ledger entry into those of current ledger entry, and update the counts of corresponding fields
|
static LedgerEntry |
buildLedgerEntry(Object[] entrySummary)
create or update a ledger entry with the array of information from the given entry summary object
|
String |
getBalanceType()
Gets the balanceType attribute.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getCreditAmount()
Gets the creditAmount attribute.
|
int |
getCreditCount()
Gets the creditCount attribute.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getDebitAmount()
Gets the debitAmount attribute.
|
int |
getDebitCount()
Gets the debitCount attribute.
|
Integer |
getFiscalYear()
Gets the fiscalYear attribute.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getNoDCAmount()
Gets the noDCAmount attribute.
|
int |
getNoDCCount()
Gets the noDCCount attribute.
|
String |
getOriginCode()
Gets the originCode attribute.
|
String |
getPeriod()
Gets the period attribute.
|
int |
getRecordCount()
Gets the recordCount attribute.
|
void |
setBalanceType(String balanceType)
Sets the balanceType attribute value.
|
void |
setCreditAmount(org.kuali.rice.core.api.util.type.KualiDecimal creditAmount)
Sets the creditAmount attribute value.
|
void |
setCreditCount(int creditCount)
Sets the creditCount attribute value.
|
void |
setDebitAmount(org.kuali.rice.core.api.util.type.KualiDecimal debitAmount)
Sets the debitAmount attribute value.
|
void |
setDebitCount(int debitCount)
Sets the debitCount attribute value.
|
void |
setFiscalYear(Integer fiscalYear)
Sets the fiscalYear attribute value.
|
void |
setNoDCAmount(org.kuali.rice.core.api.util.type.KualiDecimal noDCAmount)
Sets the noDCAmount attribute value.
|
void |
setNoDCCount(int noDCCount)
Sets the noDCCount attribute value.
|
void |
setOriginCode(String originCode)
Sets the originCode attribute value.
|
void |
setPeriod(String period)
Sets the period attribute value.
|
void |
setRecordCount(int recordCount)
Sets the recordCount attribute value.
|
String |
toString() |
public LedgerEntry()
public LedgerEntry(Integer fiscalYear, String period, String balanceType, String originCode)
fiscalYear
- period
- balanceType
- originCode
- public LedgerEntry(Integer fiscalYear, String period, String balanceType, String originCode, String debitCreditCode, org.kuali.rice.core.api.util.type.KualiDecimal amount, int count)
fiscalYear
- period
- balanceType
- originCode
- debitCreditCode
- amount
- count
- public void add(LedgerEntry addend)
addend
- the given ledger entry to be added into current onepublic static LedgerEntry buildLedgerEntry(Object[] entrySummary)
entrySummary
- an entry summary to turn into a ledger entrypublic String getBalanceType()
public void setBalanceType(String balanceType)
balanceType
- The balanceType to set.public org.kuali.rice.core.api.util.type.KualiDecimal getCreditAmount()
public void setCreditAmount(org.kuali.rice.core.api.util.type.KualiDecimal creditAmount)
creditAmount
- The creditAmount to set.public int getCreditCount()
public void setCreditCount(int creditCount)
creditCount
- The creditCount to set.public org.kuali.rice.core.api.util.type.KualiDecimal getDebitAmount()
public void setDebitAmount(org.kuali.rice.core.api.util.type.KualiDecimal debitAmount)
debitAmount
- The debitAmount to set.public int getDebitCount()
public void setDebitCount(int debitCount)
debitCount
- The debitCount to set.public Integer getFiscalYear()
public void setFiscalYear(Integer fiscalYear)
fiscalYear
- The fiscalYear to set.public org.kuali.rice.core.api.util.type.KualiDecimal getNoDCAmount()
public void setNoDCAmount(org.kuali.rice.core.api.util.type.KualiDecimal noDCAmount)
noDCAmount
- The noDCAmount to set.public int getNoDCCount()
public void setNoDCCount(int noDCCount)
noDCCount
- The noDCCount to set.public String getOriginCode()
public void setOriginCode(String originCode)
originCode
- The originCode to set.public void setPeriod(String period)
period
- The period to set.public int getRecordCount()
public void setRecordCount(int recordCount)
recordCount
- The recordCount to set.public String toString()
toString
in class Object
Object.toString()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.