SalesPoint v3.3 API

data.ooimpl
Class StockItemDBEntry

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

public abstract class StockItemDBEntry
extends DataBasketEntryImpl<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
Author:
Steffen Zschaler
See Also:
Serialized Form

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 data.ooimpl.DataBasketEntryImpl
m_dbedDest, m_dbesSource, m_dbiOwner, m_fHandled, m_oValue, m_sMainKey, m_sSecondaryKey
 
Fields inherited from interface data.DataBasketKeys
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY
 
Constructor Summary
StockItemDBEntry(String sKey, StockImpl stiSource, StockImpl stiDest, 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 data.ooimpl.DataBasketEntryImpl
commit, getDestination, getMainKey, getOwner, getSecondaryKey, getSource, getValue, isHandled, rollback, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StockItemDBEntry

public StockItemDBEntry(String sKey,
                        StockImpl stiSource,
                        StockImpl stiDest,
                        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.

Override:
Sometimes The default implementation returns 1.

getLogData

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

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

SalesPoint v3.3 API