org.kuali.kfs.gl.businessobject
Class AccountBalance

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.kfs.gl.businessobject.AccountBalance
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject
Direct Known Subclasses:
AccountBalanceByConsolidation, AccountBalanceByLevel, AccountBalanceByObject, AccountBalanceHistory

public class AccountBalance
extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase

Just as Balance is a summarization of Entry, so AccountBalance is a summarization of Balance. Specifically, it stores the current budget, actual, and encumbrance totals in one record.

See Also:
Serialized Form

Field Summary
static String TYPE_CONSOLIDATION
           
static String TYPE_LEVEL
           
static String TYPE_OBJECT
           
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
AccountBalance()
           
AccountBalance(AccountBalanceHistory accountBalanceHistory)
          Constructs a AccountBalance.java per the primary keys only of the passed in accountBalanceHistory
AccountBalance(String title)
           
AccountBalance(String type, Map data, Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber)
           
AccountBalance(Transaction t)
           
 
Method Summary
 void add(AccountBalance ab)
           
 void fixVariance()
           
 A21SubAccount getA21SubAccount()
           
 Account getAccount()
          Gets the account attribute.
 org.kuali.rice.kns.util.KualiDecimal getAccountLineActualsBalanceAmount()
           
 org.kuali.rice.kns.util.KualiDecimal getAccountLineEncumbranceBalanceAmount()
           
 String getAccountNumber()
           
 Chart getChart()
          Gets the chart attribute.
 String getChartOfAccountsCode()
           
 org.kuali.rice.kns.util.KualiDecimal getCurrentBudgetLineBalanceAmount()
           
 TransientBalanceInquiryAttributes getDummyBusinessObject()
          Gets the dummyBusinessObject attribute.
 ObjectCode getFinancialObject()
          Gets the financialObject attribute.
 SubObjectCode getFinancialSubObject()
          Gets the subObject
 String getObjectCode()
           
 SystemOptions getOption()
           
 SubAccount getSubAccount()
          Gets the subAccount attribute.
 String getSubAccountNumber()
           
 String getSubObjectCode()
           
 Date getTimestamp()
           
 String getTitle()
           
 Integer getUniversityFiscalYear()
           
 org.kuali.rice.kns.util.KualiDecimal getVariance()
           
 void setA21SubAccount(A21SubAccount subAccount)
           
 void setAccount(Account account)
          Sets the account attribute value.
 void setAccountLineActualsBalanceAmount(org.kuali.rice.kns.util.KualiDecimal accountLineActualsBalanceAmount)
           
 void setAccountLineEncumbranceBalanceAmount(org.kuali.rice.kns.util.KualiDecimal accountLineEncumbranceBalanceAmount)
           
 void setAccountNumber(String accountNumber)
           
 void setChart(Chart chart)
          Sets the chart attribute value.
 void setChartOfAccountsCode(String chartOfAccountsCode)
           
 void setCurrentBudgetLineBalanceAmount(org.kuali.rice.kns.util.KualiDecimal currentBudgetLineBalanceAmount)
           
 void setDummyBusinessObject(TransientBalanceInquiryAttributes dummyBusinessObject)
          Sets the dummyBusinessObject attribute value.
 void setFinancialObject(ObjectCode financialObject)
          Sets the financialObject attribute value.
 void setFinancialSubObject(SubObjectCode financialSubObject)
          Sets the subObject.
 void setObjectCode(String objectCode)
           
 void setOption(SystemOptions option)
           
 void setSubAccount(SubAccount subAccount)
          Sets the subAccount attribute value.
 void setSubAccountNumber(String subAccountNumber)
           
 void setSubObjectCode(String subObjectCode)
           
 void setTimestamp(Date timestamp)
           
 void setUniversityFiscalYear(Integer universityFiscalYear)
           
protected  LinkedHashMap toStringMapper()
           
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow
 

Field Detail

TYPE_CONSOLIDATION

public static final String TYPE_CONSOLIDATION
See Also:
Constant Field Values

TYPE_LEVEL

public static final String TYPE_LEVEL
See Also:
Constant Field Values

TYPE_OBJECT

public static final String TYPE_OBJECT
See Also:
Constant Field Values
Constructor Detail

AccountBalance

public AccountBalance()

AccountBalance

public AccountBalance(Transaction t)

AccountBalance

public AccountBalance(String type,
                      Map data,
                      Integer universityFiscalYear,
                      String chartOfAccountsCode,
                      String accountNumber)

AccountBalance

public AccountBalance(String title)

AccountBalance

public AccountBalance(AccountBalanceHistory accountBalanceHistory)
Constructs a AccountBalance.java per the primary keys only of the passed in accountBalanceHistory

Parameters:
accountBalanceHistory -
Method Detail

fixVariance

public void fixVariance()

getVariance

public org.kuali.rice.kns.util.KualiDecimal getVariance()

add

public void add(AccountBalance ab)

toStringMapper

protected LinkedHashMap toStringMapper()
Specified by:
toStringMapper in class org.kuali.rice.kns.bo.BusinessObjectBase

getTitle

public String getTitle()

getA21SubAccount

public A21SubAccount getA21SubAccount()

setA21SubAccount

public void setA21SubAccount(A21SubAccount subAccount)

getOption

public SystemOptions getOption()

setOption

public void setOption(SystemOptions option)

getAccountLineActualsBalanceAmount

public org.kuali.rice.kns.util.KualiDecimal getAccountLineActualsBalanceAmount()

setAccountLineActualsBalanceAmount

public void setAccountLineActualsBalanceAmount(org.kuali.rice.kns.util.KualiDecimal accountLineActualsBalanceAmount)

getAccountLineEncumbranceBalanceAmount

public org.kuali.rice.kns.util.KualiDecimal getAccountLineEncumbranceBalanceAmount()

setAccountLineEncumbranceBalanceAmount

public void setAccountLineEncumbranceBalanceAmount(org.kuali.rice.kns.util.KualiDecimal accountLineEncumbranceBalanceAmount)

getAccountNumber

public String getAccountNumber()

setAccountNumber

public void setAccountNumber(String accountNumber)

getChartOfAccountsCode

public String getChartOfAccountsCode()

setChartOfAccountsCode

public void setChartOfAccountsCode(String chartOfAccountsCode)

getCurrentBudgetLineBalanceAmount

public org.kuali.rice.kns.util.KualiDecimal getCurrentBudgetLineBalanceAmount()

setCurrentBudgetLineBalanceAmount

public void setCurrentBudgetLineBalanceAmount(org.kuali.rice.kns.util.KualiDecimal currentBudgetLineBalanceAmount)

getObjectCode

public String getObjectCode()

setObjectCode

public void setObjectCode(String objectCode)

getSubAccountNumber

public String getSubAccountNumber()

setSubAccountNumber

public void setSubAccountNumber(String subAccountNumber)

getSubObjectCode

public String getSubObjectCode()

setSubObjectCode

public void setSubObjectCode(String subObjectCode)

getTimestamp

public Date getTimestamp()

setTimestamp

public void setTimestamp(Date timestamp)

getUniversityFiscalYear

public Integer getUniversityFiscalYear()

setUniversityFiscalYear

public void setUniversityFiscalYear(Integer universityFiscalYear)

getAccount

public Account getAccount()
Gets the account attribute.

Returns:
Returns the account.

setAccount

public void setAccount(Account account)
Sets the account attribute value.

Parameters:
account - The account to set.

getChart

public Chart getChart()
Gets the chart attribute.

Returns:
Returns the chart.

setChart

public void setChart(Chart chart)
Sets the chart attribute value.

Parameters:
chart - The chart to set.

getFinancialObject

public ObjectCode getFinancialObject()
Gets the financialObject attribute.

Returns:
Returns the financialObject.

setFinancialObject

public void setFinancialObject(ObjectCode financialObject)
Sets the financialObject attribute value.

Parameters:
financialObject - The financialObject to set.

getDummyBusinessObject

public TransientBalanceInquiryAttributes getDummyBusinessObject()
Gets the dummyBusinessObject attribute.

Returns:
Returns the dummyBusinessObject.

setDummyBusinessObject

public void setDummyBusinessObject(TransientBalanceInquiryAttributes dummyBusinessObject)
Sets the dummyBusinessObject attribute value.

Parameters:
dummyBusinessObject - The dummyBusinessObject to set.

getSubAccount

public SubAccount getSubAccount()
Gets the subAccount attribute.

Returns:
Returns the subAccount.

setSubAccount

public void setSubAccount(SubAccount subAccount)
Sets the subAccount attribute value.

Parameters:
subAccount - The subAccount to set.

getFinancialSubObject

public SubObjectCode getFinancialSubObject()
Gets the subObject

Returns:

setFinancialSubObject

public void setFinancialSubObject(SubObjectCode financialSubObject)
Sets the subObject.

Parameters:
financialSubObject -


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