SalesPoint Framework v3.2

data.ooimpl
Interface SelfManagingDBEDestination

All Superinterfaces:
DataBasketEntryDestination
All Known Implementing Classes:
AbstractCurrency, CatalogImpl, CountingStockImpl, CurrencyImpl, EUROCurrencyImpl, MoneyBagImpl, StockImpl, StoringStockImpl

public interface SelfManagingDBEDestination
extends DataBasketEntryDestination

DataBasketEntryDestination that knows how to rollback or commit add operations.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
DataBasketEntryImpl

Method Summary
 void commitAdd(DataBasket db, DataBasketEntry dbe)
          Called when an add must be commited.
 void rollbackAdd(DataBasket db, DataBasketEntry dbe)
          Called when an add must be rolled back.
 

Method Detail

commitAdd

void commitAdd(DataBasket db,
               DataBasketEntry dbe)
Called when an add must be commited.

Parameters:
db - the DataBasket that issued the commit request
dbe - the DataBasketEntry describing the operation to commit.
Override:
Always

rollbackAdd

void rollbackAdd(DataBasket db,
                 DataBasketEntry dbe)
Called when an add must be rolled back.

Parameters:
db - the DataBasket that issued the rollback request
dbe - the DataBasketEntry describing the operation to rollback.
Override:
Always

SalesPoint Framework v3.2