SalesPoint v3.3 API

data.ooimpl
Class StoringStockItemDBEntry

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

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

Nested Class Summary
 
Nested classes/interfaces inherited from class data.ooimpl.StockItemDBEntry
StockItemDBEntry.StockItemDBELogEntry
 
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
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 v3.3 API