| net.sf.jmoney.model2.EntryExtension net.sf.jmoney.stocks.StockEntry
StockEntry | public class StockEntry extends EntryExtension (Code) | | Property set implementation class for the properties added
to each Entry object by this plug-in.
author: Nigel Westbury |
Field Summary | |
protected IObjectKey | stockKey The commodity (Stock or Bond) involved in this entry. |
stockKey | protected IObjectKey stockKey(Code) | | The commodity (Stock or Bond) involved in this entry.
Do we use this field for dividend payments, where no change
in stock amounts is involved but we do want to associate the
cash amount with a stock?
|
StockEntry | public StockEntry(ExtendableObject extendedObject)(Code) | | A default constructor is mandatory for all extension objects.
The default constructor sets the extension properties to
appropriate default values.
Parameters: extendedObject - |
StockEntry | public StockEntry(ExtendableObject extendedObject, boolean stockChange, IObjectKey stockKey, Date bargainDate)(Code) | | A Full constructor is mandatory for all extension objects.
This constructor is called by the datastore to construct
the extension objects when loading data.
|
getBargainDate | public Date getBargainDate()(Code) | | The date on which the deal was made. |
getStock | public Stock getStock()(Code) | | Gets the stock involved in this entry.
An object of type Stock or Bond.Null will be returned if no value has previouslybeen set. |
isStockChange | public boolean isStockChange()(Code) | | true if this entry represents an addition of stockto the account or a removal of stock from the account,false if this entry represents anything else, such ascash dividends going into the account. |
setBargainDate | public void setBargainDate(Date bargainDate)(Code) | | Parameters: bargainDate - The date on which the deal was made. |
setStock | public void setStock(Stock stock)(Code) | | Sets the stock involved in this entry.
Parameters: stock - An object of type Stock or Bond. |
setStockChange | public void setStockChange(boolean stockChange)(Code) | | Parameters: stockChange - true if this entry represents an addition of stockto the account or a removal of stock from the account,false if this entry represents anything else, such ascash dividends going into the account. |
|
|