SalesPoint Framework v3.0

data.ooimpl
Class StockItemDBEntry

java.lang.Object
  |
  +--data.ooimpl.DataBasketEntryImpl
        |
        +--data.ooimpl.StockItemDBEntry
Direct Known Subclasses:
CountingStockItemDBEntry, StoringStockItemDBEntry

public abstract class StockItemDBEntry
extends DataBasketEntryImpl

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
See Also:
Serialized Form

Inner Class Summary
static class StockItemDBEntry.StockItemDBELogEntry
          A LogEntry that describes an operation on one or more StockItem(s).
 
Fields inherited from class data.ooimpl.DataBasketEntryImpl
m_dbedDest, m_dbesSource, m_dbiOwner, m_fHandled, m_oValue, m_sMainKey, m_sSecondaryKey
 
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.
Override:
Never.
Overrides:
getLogData in class DataBasketEntryImpl

SalesPoint Framework v3.0