org.salespointframework.core.data
Class CountingStockChangeEvent<T extends StockItemImpl,CT extends CatalogItemImpl>

java.lang.Object
  extended by java.util.EventObject
      extended by org.salespointframework.core.data.events.StockChangeEvent<T,CT>
          extended by org.salespointframework.core.data.CountingStockChangeEvent<T,CT>
All Implemented Interfaces:
java.io.Serializable

 class CountingStockChangeEvent<T extends StockItemImpl,CT extends CatalogItemImpl>
extends StockChangeEvent<T,CT>

StockChangeEvent that desribes changes in a CountingStock's contents.

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

Field Summary
private  int m_nCount
          The number of affected items.
private  java.lang.String m_sKey
          The affected key.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CountingStockChangeEvent(CountingStockImpl<T,CT> csiSource, DataBasket dbBasket, java.lang.String sKey, int nCount)
          Create a new CountingStockChangeEvent.
 
Method Summary
 int countAffectedItems()
          Get the number of affected items.
 java.util.Iterator<T> getAffectedItems()
          Get the affected items.
 java.lang.String getAffectedKey()
          Get the affected key.
 
Methods inherited from class org.salespointframework.core.data.events.StockChangeEvent
getBasket
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_nCount

private int m_nCount
The number of affected items.


m_sKey

private java.lang.String m_sKey
The affected key.

Constructor Detail

CountingStockChangeEvent

public CountingStockChangeEvent(CountingStockImpl<T,CT> csiSource,
                                DataBasket dbBasket,
                                java.lang.String sKey,
                                int nCount)
Create a new CountingStockChangeEvent.

Parameters:
csiSource - the Stock that triggers the event.
dbBasket - the DataBasket that was used to perform the operation.
sKey - the affected key.
nCount - the number of affected items.
Method Detail

getAffectedKey

public java.lang.String getAffectedKey()
Get the affected key.

Specified by:
getAffectedKey in class StockChangeEvent<T extends StockItemImpl,CT extends CatalogItemImpl>

countAffectedItems

public int countAffectedItems()
Get the number of affected items.

Specified by:
countAffectedItems in class StockChangeEvent<T extends StockItemImpl,CT extends CatalogItemImpl>

getAffectedItems

public java.util.Iterator<T> getAffectedItems()
Get the affected items.

Specified by:
getAffectedItems in class StockChangeEvent<T extends StockItemImpl,CT extends CatalogItemImpl>