org.salespointframework.core.data
Class StockItemDBEntry

java.lang.Object
  extended by org.salespointframework.core.data.DataBasketEntryImpl<java.lang.Object>
      extended by org.salespointframework.core.data.StockItemDBEntry
All Implemented Interfaces:
DataBasketEntry<java.lang.Object>, DataBasketKeys, SpItem, Loggable
Direct Known Subclasses:
CountingStockItemDBEntry, StoringStockItemDBEntry

public abstract class StockItemDBEntry
extends DataBasketEntryImpl<java.lang.Object>

DataBasketEntry that represents an operation with StockItems. The details as to how the individual fields are used depend on the subclasses.

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

Nested Class Summary
static class StockItemDBEntry.StockItemDBELogEntry
          A LogEntry that describes an operation on one or more StockItem(s).
 
Field Summary
 
Fields inherited from class org.salespointframework.core.data.DataBasketEntryImpl
m_dbedDest, m_dbesSource, m_dbiOwner, m_fHandled, m_oValue, m_sMainKey, m_sSecondaryKey
 
Fields inherited from interface org.salespointframework.core.data.interfaces.DataBasketKeys
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY
 
Constructor Summary
StockItemDBEntry(java.lang.String sKey, StockImpl stiSource, StockImpl stiDest, java.lang.Object oValue)
          Create a new StockItemDBEntry.
 
Method Summary
 int count()
          Count the items affected by this DataBasketEntry.
 LogEntry getLogData()
          Get a LogEntry describing this DataBasketEntry.
 
Methods inherited from class org.salespointframework.core.data.DataBasketEntryImpl
commit, DBEtoCatalogItem, getDestination, getMainKey, getName, getOwner, getSecondaryKey, getSource, getValue, isHandled, rollback, setOwner, setSecondaryKey, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StockItemDBEntry

public StockItemDBEntry(java.lang.String sKey,
                        StockImpl stiSource,
                        StockImpl stiDest,
                        java.lang.Object oValue)
Create a new StockItemDBEntry.

Parameters:
sKey - the key of the affected item(s).
stiSource - the source Stock.
stiDest - the destination Stock.
oValue - the value of the DataBasketEntry.
Method Detail

count

public int count()
Count the items affected by this DataBasketEntry.


getLogData

public LogEntry getLogData()
Get a LogEntry describing this DataBasketEntry.

Specified by:
getLogData in interface Loggable
Overrides:
getLogData in class DataBasketEntryImpl<java.lang.Object>
Returns:
the data to be stored in the log file.