data.ooimpl
Class StockItemDBEntry
java.lang.Object
data.ooimpl.DataBasketEntryImpl<Object>
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
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.
- Specified by:
getLogData
in interface Loggable
- Overrides:
getLogData
in class DataBasketEntryImpl<Object>
- Returns:
- the data to be stored in the log file.
- Override:
- Never