|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.buddi.model.impl.ModelObjectImpl
org.homeunix.thecave.buddi.model.impl.SourceImpl
org.homeunix.thecave.buddi.model.impl.AccountImpl
public class AccountImpl
Default implementation of an Account. You should not create this object directly; instead, please use the ModelFactory to create it, as this will ensure that all required fields are correctly set.
| Field Summary |
|---|
| Fields inherited from class org.homeunix.thecave.buddi.model.impl.SourceImpl |
|---|
deleted, name, notes |
| Fields inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl |
|---|
document, modifiedTime, uid |
| Constructor Summary | |
|---|---|
AccountImpl()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ModelObject arg0)
|
AccountType |
getAccountType()
Get the account type |
long |
getBalance()
Returns the current balance. |
long |
getBalance(java.util.Date d)
Returns the balance as of the given date. |
java.lang.String |
getFullName()
Returns the full name of this source. |
long |
getOverdraftCreditLimit()
Returns the overdraft limit for Debit accounts, or Credit Limit for Credit accounts. |
java.util.Date |
getStartDate()
Returns the starting date of this account. |
long |
getStartingBalance()
Returns the starting balance associated with this account. |
void |
setAccountType(AccountType type)
Sets the account type |
void |
setBalance(long balance)
|
void |
setName(java.lang.String name)
Sets the name of this source. |
void |
setOverdraftCreditLimit(long overdraftCreditLimit)
Sets the overdraft limit for debit accounts, or the credit limit for credit accounts. |
void |
setStartDate(java.util.Date startDate)
Sets the starting date of this account. |
void |
setStartingBalance(long startingBalance)
Sets the starting balance |
void |
updateBalance()
Updates the balance for this account, by navigating all associated transactions. |
| Methods inherited from class org.homeunix.thecave.buddi.model.impl.SourceImpl |
|---|
getName, getNotes, isDeleted, setDeleted, setNotes, toString |
| Methods inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl |
|---|
equals, getDocument, getModified, getUid, setChanged, setDocument, setModified, setModified, setUid |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.homeunix.thecave.buddi.model.Source |
|---|
getName, getNotes, isDeleted, setDeleted, setNotes |
| Methods inherited from interface org.homeunix.thecave.buddi.model.ModelObject |
|---|
getDocument, getModified, getUid, setChanged, setDocument |
| Constructor Detail |
|---|
public AccountImpl()
| Method Detail |
|---|
public long getStartingBalance()
Account
getStartingBalance in interface Accountpublic void setStartingBalance(long startingBalance)
Account
setStartingBalance in interface Accountpublic java.util.Date getStartDate()
Account
getStartDate in interface Accountpublic void setStartDate(java.util.Date startDate)
Account
setStartDate in interface Accountpublic long getBalance()
Account
getBalance in interface Accountpublic void setBalance(long balance)
public AccountType getAccountType()
Account
getAccountType in interface Accountpublic void setAccountType(AccountType type)
Account
setAccountType in interface Account
public void setName(java.lang.String name)
throws InvalidValueException
Source
setName in interface SourcesetName in class SourceImplInvalidValueExceptionpublic void updateBalance()
Account
updateBalance in interface Accountpublic java.lang.String getFullName()
Source
getFullName in interface Sourcepublic long getBalance(java.util.Date d)
Account
getBalance in interface Accountpublic int compareTo(ModelObject arg0)
compareTo in interface java.lang.Comparable<ModelObject>compareTo in interface ModelObjectcompareTo in class ModelObjectImplpublic long getOverdraftCreditLimit()
Account
getOverdraftCreditLimit in interface Account
public void setOverdraftCreditLimit(long overdraftCreditLimit)
throws InvalidValueException
Account
setOverdraftCreditLimit in interface AccountInvalidValueException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||