jgnash.engine.dao
Interface CommodityDAO
- All Known Implementing Classes:
- Db4oCommodityDAO, XMLCommodityDAO
public interface CommodityDAO
Commodity DAO Interface
- Version:
- $Id$
- Author:
- Craig Cavanaugh
addCommodity
boolean addCommodity(CommodityNode node)
addExchangeRateHistory
boolean addExchangeRateHistory(ExchangeRate rate,
ExchangeRateHistoryNode hNode)
addSecurityHistory
boolean addSecurityHistory(SecurityNode node,
SecurityHistoryNode hNode)
getActiveCurrencies
java.util.Set<CurrencyNode> getActiveCurrencies()
- Returns the active currencies
- Returns:
- set of active currencies
getCurrencies
java.util.List<CurrencyNode> getCurrencies()
getExchangeNode
ExchangeRate getExchangeNode(java.lang.String rateId)
getSecurities
java.util.List<SecurityNode> getSecurities()
refreshCommodityNode
void refreshCommodityNode(CommodityNode node)
refreshExchangeRate
void refreshExchangeRate(ExchangeRate rate)
removeExchangeRateHistory
boolean removeExchangeRateHistory(ExchangeRate rate,
ExchangeRateHistoryNode hNode)
removeSecurityHistory
boolean removeSecurityHistory(SecurityNode node,
SecurityHistoryNode hNode)
addExchangeRate
void addExchangeRate(ExchangeRate eRate)
updateCommodityNode
boolean updateCommodityNode(CommodityNode node)
getExchangeRates
java.util.List<ExchangeRate> getExchangeRates()