| java.lang.Object net.sf.jmoney.model2.ExtendableObject net.sf.jmoney.model2.Account net.sf.jmoney.model2.CapitalAccount net.sf.jmoney.model2.CurrencyAccount
All known Subclasses: net.sf.jmoney.model2.BankAccount,
CurrencyAccount | abstract public class CurrencyAccount extends CapitalAccount (Code) | | The data model for an account.
|
currencyKey | protected IObjectKey currencyKey(Code) | | Guaranteed non-null because the session default currency is
set by default.
|
startBalance | protected long startBalance(Code) | | |
CurrencyAccount | public CurrencyAccount(IObjectKey objectKey, ListKey parent, String name, IListManager<CapitalAccount> subAccounts, String abbreviation, String comment, IObjectKey currencyKey, long startBalance, IValues extensionValues)(Code) | | The full constructor for a CurrencyAccount object. This constructor is called
only by the datastore plug-in when loading data from the datastore. The properties
passed to this constructor must be valid because datastores should only pass back
values that were previously saved from a CapitalAccount object. So, for example,
we can be sure that a non-null name and currency are passed to this constructor.
Parameters: name - the name of the account |
CurrencyAccount | public CurrencyAccount(IObjectKey objectKey, ListKey parent)(Code) | | The default constructor for a CapitalAccount object. This constructor is called
when a new CapitalAccount object is created. The properties are set to default
values. The list properties are set to empty lists. The parameter list for this
constructor is the same as the full constructor except that there are no parameters
for the scalar properties.
|
getBalance | public long getBalance(Session session, Date fromDate, Date toDate)(Code) | | Get the balance at a given date
Parameters: date - the balance author: Faucheux |
getBalanceWithSubAccounts | public long getBalanceWithSubAccounts(Session session, Date fromDate, Date toDate)(Code) | | Get the balance between two dates , inclusive sub-accounts
Parameters: date - the balance author: Faucheux |
getCurrencyCode | public String getCurrencyCode()(Code) | | the locale of this account. |
getExtendablePropertySetId | protected String getExtendablePropertySetId()(Code) | | |
getStartBalance | public long getStartBalance()(Code) | | the initial balance of this account. |
setStartBalance | public void setStartBalance(long startBalance)(Code) | | Sets the initial balance of this account.
Parameters: startBalance - the start balance |
|
|