|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.BusinessObjectBase org.kuali.rice.krad.bo.PersistableBusinessObjectBase org.kuali.kfs.coa.businessobject.Account
public class Account
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
LOG
|
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
---|
extension, versionNumber |
Constructor Summary | |
---|---|
Account()
Default no-arg constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Implementing equals since I need contains to behave reasonably in a hashed datastructure. |
Date |
getAccountCreateDate()
Gets the accountCreateDate attribute. |
Date |
getAccountEffectiveDate()
Gets the accountEffectiveDate attribute. |
Date |
getAccountExpirationDate()
Gets the accountExpirationDate attribute. |
String |
getAccountKey()
Convenience method to make the primitive account fields from this Account easier to compare to the account fields from another Account or an AccountingLine |
String |
getAccountName()
Gets the accountName attribute. |
String |
getAccountNumber()
Gets the accountNumber attribute. |
Chart |
getChartOfAccounts()
Gets the chartOfAccounts attribute. |
String |
getChartOfAccountsCode()
|
Organization |
getOrganization()
Gets the organization attribute. |
String |
getOrganizationCode()
|
List |
getSubAccounts()
|
int |
hashCode()
Calcluates hashCode based on current values of chartOfAccountsCode and accountNumber fields. |
boolean |
isActive()
Gets the active attribute. |
boolean |
isClosed()
Returns whether this account is not active or not |
boolean |
isExpired(Calendar testDate)
This method determines whether the account is expired or not. |
boolean |
isExpired(Date testDate)
This method determines whether the account is expired or not. |
void |
setAccountCreateDate(Date accountCreateDate)
Sets the accountCreateDate attribute. |
void |
setAccountEffectiveDate(Date accountEffectiveDate)
Sets the accountEffectiveDate attribute. |
void |
setAccountExpirationDate(Date accountExpirationDate)
Sets the accountExpirationDate attribute. |
void |
setAccountName(String accountName)
Sets the accountName attribute. |
void |
setAccountNumber(String accountNumber)
Sets the accountNumber attribute. |
void |
setActive(boolean active)
Sets the active attribute. |
void |
setChartOfAccounts(Chart chartOfAccounts)
Deprecated. |
void |
setChartOfAccountsCode(String chartOfAccountsCode)
|
void |
setClosed(boolean closed)
Sets the closed attribute. |
void |
setOrganization(Organization organization)
Deprecated. |
void |
setOrganizationCode(String organizationCode)
|
void |
setSubAccounts(List subAccounts)
|
protected LinkedHashMap |
toStringMapper()
|
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
---|
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber |
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic |
---|
toString |
Field Detail |
---|
protected static org.apache.log4j.Logger LOG
Constructor Detail |
---|
public Account()
Method Detail |
---|
public String getOrganizationCode()
public void setOrganizationCode(String organizationCode)
public String getAccountNumber()
public void setAccountNumber(String accountNumber)
accountNumber
- The accountNumber to set.public String getAccountName()
public void setAccountName(String accountName)
accountName
- The accountName to set.public Date getAccountCreateDate()
public void setAccountCreateDate(Date accountCreateDate)
accountCreateDate
- The accountCreateDate to set.public Date getAccountEffectiveDate()
public void setAccountEffectiveDate(Date accountEffectiveDate)
accountEffectiveDate
- The accountEffectiveDate to set.public Date getAccountExpirationDate()
public void setAccountExpirationDate(Date accountExpirationDate)
accountExpirationDate
- The accountExpirationDate to set.public boolean isExpired(Calendar testDate)
testDate
- - Calendar instance with the date to test the Account's Expiration Date against. This is most commonly set to
today's date.
public boolean isExpired(Date testDate)
testDate
- - java.util.Date instance with the date to test the Account's Expiration Date against. This is most commonly
set to today's date.
public boolean isActive()
isActive
in interface org.kuali.rice.core.api.mo.common.active.Inactivatable
public void setActive(boolean active)
active
- The active to set.public boolean isClosed()
public void setClosed(boolean closed)
closed
- The closed to set.public Chart getChartOfAccounts()
public void setChartOfAccounts(Chart chartOfAccounts)
chartOfAccounts
- The chartOfAccounts to set.public Organization getOrganization()
public void setOrganization(Organization organization)
organization
- The organization to set.public List getSubAccounts()
public void setSubAccounts(List subAccounts)
subAccounts
- The subAccounts to set.public String getChartOfAccountsCode()
public void setChartOfAccountsCode(String chartOfAccountsCode)
chartOfAccountsCode
- The chartOfAccountsCode to set.protected LinkedHashMap toStringMapper()
org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getAccountKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |