org.salespointframework.core.data.interfaces
Interface MoneyBag

All Superinterfaces:
java.lang.Cloneable, java.lang.Comparable<java.lang.Object>, CountingStock<StockItemImpl,CurrencyItemImpl>, DataBasketEntryDestination, DataBasketEntrySource, DatasourceChangeListener, ExternalModificationListener, java.lang.Iterable<StockItemImpl>, Nameable, SpAggregate, SpItem, Stock<StockItemImpl,CurrencyItemImpl>, StockItem
All Known Implementing Classes:
MoneyBagFilter, MoneyBagImpl

public interface MoneyBag
extends CountingStock<StockItemImpl,CurrencyItemImpl>

Tag interface marking CountingStocks that work together with Currencies.

Since:
v2.0
Version:
2.0 18/08/1999
Author:
Steffen Zschaler

Field Summary
 
Fields inherited from interface org.salespointframework.core.data.interfaces.Nameable
NAME_PROPERTY
 
Method Summary
 void transferMoney(MoneyBag mbDest, DataBasket db, NumberValue nvAmount)
          Tries to transfer money from this DataBasket into another one.
 
Methods inherited from interface org.salespointframework.core.data.interfaces.CountingStock
add, remove
 
Methods inherited from interface org.salespointframework.core.data.interfaces.Stock
add, addStock, contains, contains, containsStock, countItems, fillStockWithValue, get, getCatalog, iterator, keySet, remove, remove, size, sumStock
 
Methods inherited from interface org.salespointframework.core.data.interfaces.StockItem
clone, getAssociatedItem, getStock
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.salespointframework.core.data.interfaces.Nameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 
Methods inherited from interface org.salespointframework.core.data.interfaces.SpItem
getName
 
Methods inherited from interface org.salespointframework.core.data.events.DatasourceChangeListener
DatasourceChanged
 
Methods inherited from interface org.salespointframework.core.data.events.ExternalModificationListener
externalModificationOccurred
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

transferMoney

void transferMoney(MoneyBag mbDest,
                   DataBasket db,
                   NumberValue nvAmount)
Tries to transfer money from this DataBasket into another one.

Parameters:
mbDest - the MoneyBag to transfer the money to
db - a transaction DataBasket
nvAmount - the amount of money to transfer