SalesPoint v3.3 API

data.ooimpl
Interface SelfManagingDBEDestination<T>

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

public interface SelfManagingDBEDestination<T>
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<T> dbe)
          Called when an add must be commited.
 void rollbackAdd(DataBasket db, DataBasketEntry<T> dbe)
          Called when an add must be rolled back.
 

Method Detail

commitAdd

void commitAdd(DataBasket db,
               DataBasketEntry<T> 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<T> 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 v3.3 API