|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgnash.engine.AccountProxy
public class AccountProxy
Proxy class to locate account balance behaviors. Depending on account type, summation of transaction types are handled differently.
| Field Summary | |
|---|---|
(package private) Account |
account
|
| Constructor Summary | |
|---|---|
AccountProxy(Account account)
|
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
getBalance()
|
java.math.BigDecimal |
getBalance(java.util.Date date)
Returns the account balance up to and inclusive of the supplied date |
java.math.BigDecimal |
getBalance(java.util.Date start,
java.util.Date end)
Returns the balance of the transactions inclusive of the start and end dates. |
java.math.BigDecimal |
getBalanceAt(int index)
Get the account balance up to a specified index. |
java.math.BigDecimal |
getCashBalance()
Returns the cash balance of this account |
java.math.BigDecimal |
getCashBalance(java.util.Date end)
Returns the cash account balance up to and inclusive of the supplied date |
java.math.BigDecimal |
getCashBalance(java.util.Date start,
java.util.Date end)
Returns the balance of the transactions inclusive of the start and end dates. |
java.math.BigDecimal |
getMarketPrice(SecurityNode node,
java.util.Date date)
Returns a market price for the commodity that is closest to the supplied date without exceeding it. |
java.math.BigDecimal |
getMarketValue()
Returns the market value of this account |
java.math.BigDecimal |
getMarketValue(java.util.Date date)
Returns the market value of the account at a specified date. |
java.math.BigDecimal |
getMarketValue(java.util.Date start,
java.util.Date end)
Returns the market value for an account |
java.math.BigDecimal |
getOpeningBalanceForReconcile()
Get the default opening balance for reconciling the account |
java.math.BigDecimal |
getReconciledBalance()
Calculates the reconciled balance of the account |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final Account account
| Constructor Detail |
|---|
AccountProxy(Account account)
| Method Detail |
|---|
public java.math.BigDecimal getBalance()
public java.math.BigDecimal getBalanceAt(int index)
index - the balance of this account at the specified index.
public java.math.BigDecimal getBalance(java.util.Date start,
java.util.Date end)
start - The inclusive start dateend - The inclusive end date
public java.math.BigDecimal getBalance(java.util.Date date)
date - The inclusive ending date
public java.math.BigDecimal getCashBalance()
public java.math.BigDecimal getCashBalance(java.util.Date end)
end - The inclusive ending date
public java.math.BigDecimal getCashBalance(java.util.Date start,
java.util.Date end)
The balance includes the cash transactions and is based on current market value.
start - The inclusive start dateend - The inclusive end date
public java.math.BigDecimal getMarketPrice(SecurityNode node,
java.util.Date date)
node - commodity to search againstdate - date to search against
public java.math.BigDecimal getMarketValue()
public java.math.BigDecimal getMarketValue(java.util.Date date)
date - the end date to calculate the market value
public java.math.BigDecimal getMarketValue(java.util.Date start,
java.util.Date end)
start - inclusive start dateend - inclusive end date
public java.math.BigDecimal getReconciledBalance()
public java.math.BigDecimal getOpeningBalanceForReconcile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||