| java.lang.Object net.sf.jmoney.model2.ExtendableObject net.sf.jmoney.model2.Entry
Constructor Summary | |
public | Entry(IObjectKey objectKey, ListKey parentKey, String check, IObjectKey accountKey, Date valuta, String memo, long amount, long creation, IObjectKey incomeExpenseCurrencyKey, IValues extensionValues) Constructor used by datastore plug-ins to create
an entry object.
Note that the entry constructed by this constructor
may be invalid. | public | Entry(IObjectKey objectKey, ListKey parentKey) Constructor used by datastore plug-ins to create
an entry object.
Note that the entry constructed by this constructor
may be invalid. |
amount | protected long amount(Code) | | |
creation | protected long creation(Code) | | |
incomeExpenseCurrencyKey | protected IObjectKey incomeExpenseCurrencyKey(Code) | | Applicable only if the account is an IncomeExpenseAccount
and the multi-currency property in the account is set.
Element: Currency
|
Entry | public Entry(IObjectKey objectKey, ListKey parentKey, String check, IObjectKey accountKey, Date valuta, String memo, long amount, long creation, IObjectKey incomeExpenseCurrencyKey, IValues extensionValues)(Code) | | Constructor used by datastore plug-ins to create
an entry object.
Note that the entry constructed by this constructor
may be invalid. For example, it is possible that a
null account is set. It is the callers responsibility
to ensure that an account is set before it relinquishes
control to other plug-ins.
Parameters: parent - The key to a Transaction object.This parameter must be non-null.The getObject method must not be called on thiskey from within this constructor because thekey may not yet be in a state in which it iscapable of materializing an object. |
Entry | public Entry(IObjectKey objectKey, ListKey parentKey)(Code) | | Constructor used by datastore plug-ins to create
an entry object.
Note that the entry constructed by this constructor
may be invalid. For example, it is possible that a
null account is set. It is the callers responsibility
to ensure that an account is set before it relinquishes
control to other plug-ins.
Parameters: parent - The key to a Transaction object.This parameter must be non-null.The getObject method must not be called on thiskey from within this constructor because thekey may not yet be in a state in which it iscapable of materializing an object. |
getAmount | public long getAmount()(Code) | | Returns the amount.
|
getCommodity | public Commodity getCommodity()(Code) | | The commodity for this entry, or null if not enoughinformation has been set to determine the commodity. |
getCreation | public long getCreation()(Code) | | Returns the creation.
|
getExtendablePropertySetId | protected String getExtendablePropertySetId()(Code) | | |
getIncomeExpenseCurrency | public Currency getIncomeExpenseCurrency()(Code) | | Returns the currency in which the amount in this entry is denominated.
This property is applicable if and only if the account for this entry
is an IncomeExpenseAccount and the multi-currency property in the account
is set.
|
getOtherAccount | public Account getOtherAccount()(Code) | | returns the other account of the transaction associated with this
entry. If the transaction is a splitted one, there are several "other
accounts", and the returned value is "null".
|
getValuta | public Date getValuta()(Code) | | Returns the valuta.
|
setAccount | public void setAccount(Account newAccount)(Code) | | Sets the account.
|
setAmount | public void setAmount(long anAmount)(Code) | | Sets the amount.
|
setCheck | public void setCheck(String aCheck)(Code) | | Sets the check.
|
setCreation | public void setCreation(long aCreation)(Code) | | Sets the creation.
|
setIncomeExpenseCurrency | public void setIncomeExpenseCurrency(Currency incomeExpenseCurrency)(Code) | | Sets the currency in which the amount in this entry is denominated.
This property is applicable if and only if the account for this entry
is an IncomeExpenseAccount and the multi-currency property in the account
is set.
|
setMemo | public void setMemo(String aMemo)(Code) | | Sets the memo.
|
setValuta | public void setValuta(Date aValuta)(Code) | | Sets the valuta.
|
|
|