org.salespointframework.core.data
Class StoringStockItemDBEntry

java.lang.Object
  extended by org.salespointframework.core.data.DataBasketEntryImpl<java.lang.Object>
      extended by org.salespointframework.core.data.StockItemDBEntry
          extended by org.salespointframework.core.data.StoringStockItemDBEntry
All Implemented Interfaces:
DataBasketEntry<java.lang.Object>, DataBasketKeys, SpItem, 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
Version:
2.0 19/09/1999
Author:
Steffen Zschaler

Nested Class Summary
 
Nested classes/interfaces inherited from class org.salespointframework.core.data.StockItemDBEntry
StockItemDBEntry.StockItemDBELogEntry
 
Field Summary
 
Fields inherited from class org.salespointframework.core.data.DataBasketEntryImpl
m_dbedDest, m_dbesSource, m_dbiOwner, m_fHandled, m_oValue, m_sMainKey, m_sSecondaryKey
 
Fields inherited from interface org.salespointframework.core.data.interfaces.DataBasketKeys
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY
 
Constructor Summary
StoringStockItemDBEntry(StoringStockImpl sstiSource, StoringStockImpl sstiDest, StockItem 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 org.salespointframework.core.data.StockItemDBEntry
count, getLogData
 
Methods inherited from class org.salespointframework.core.data.DataBasketEntryImpl
commit, DBEtoCatalogItem, getDestination, getMainKey, getName, getOwner, getSecondaryKey, getSource, getValue, isHandled, rollback, setOwner, setSecondaryKey, setValue
 
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,
                               StockItem 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.


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.