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
Method Summary |
int |
count()
Count the items affected by this DataBasketEntry. |
LogEntry |
getLogData()
Get a LogEntry describing this DataBasketEntry. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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.
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