SalesPoint Framework v3.0

data.ooimpl
Class StoringStockItemDBEntry

java.lang.Object
  |
  +--data.ooimpl.DataBasketEntryImpl
        |
        +--data.ooimpl.StockItemDBEntry
              |
              +--data.ooimpl.StoringStockItemDBEntry

public class StoringStockItemDBEntry
extends StockItemDBEntry

DataBasketEntry that describes operations with StoringStock's items. The fields of the DataBasketEntry are set as follows:

FieldValue
main key STOCK_ITEM_MAIN_KEY
secondary key name of the StockItem in question
source source stock
destination destination stock
value StockItem that was moved.

Since:
v2.0
Version:
2.0 19/09/1999
Author:
Steffen Zschaler
See Also:
Serialized Form

Inner classes inherited from class data.ooimpl.StockItemDBEntry
StockItemDBEntry.StockItemDBELogEntry
 
Fields inherited from class data.ooimpl.DataBasketEntryImpl
m_dbedDest, m_dbesSource, m_dbiOwner, m_fHandled, m_oValue, m_sMainKey, m_sSecondaryKey
 
Constructor Summary
StoringStockItemDBEntry(StoringStockImpl sstiSource, StoringStockImpl sstiDest, StockItemImpl siiItem)
          Create a new StoringStockItemDBEntry.
 
Method Summary
 void commitSource()
          Commit the source part of the operation described by this DataBasketEntry.
 void rollbackDestination()
          Rollback the destination part of the operation described by this DataBasketEntry.
 
Methods inherited from class data.ooimpl.StockItemDBEntry
count, getLogData
 
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

StoringStockItemDBEntry

public StoringStockItemDBEntry(StoringStockImpl sstiSource,
                               StoringStockImpl sstiDest,
                               StockItemImpl siiItem)
Create a new StoringStockItemDBEntry.
Parameters:
sstiSource - the source Stock.
sstiDest - the destination Stock.
siiItem - the item that was operated on.
Method Detail

rollbackDestination

public void rollbackDestination()
Rollback the destination part of the operation described by this DataBasketEntry.

The method will correctly update the underlying DataBasket.

Attention: The method is public as an implementation detail and should not be called directly.

Override:
Never.

commitSource

public void commitSource()
Commit the source part of the operation described by this DataBasketEntry.

The method will correctly update the underlying DataBasket.

Attention: The method is public as an implementation detail and should not be called directly.

Override:
Never.

SalesPoint Framework v3.0