SalesPoint v3.3 API

data.ooimpl
Interface SelfManagingDBESource<T>

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

public interface SelfManagingDBESource<T>
extends DataBasketEntrySource

DataBasketEntrySource that knows how to rollback or commit remove operations.

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

Method Summary
 void commitRemove(DataBasket db, DataBasketEntry<T> dbe)
          Called when a remove must be rolled back.
 void rollbackRemove(DataBasket db, DataBasketEntry<T> dbe)
          Called when a remove must be commited.
 

Method Detail

commitRemove

void commitRemove(DataBasket db,
                  DataBasketEntry<T> dbe)
Called when a remove must be rolled back.

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

rollbackRemove

void rollbackRemove(DataBasket db,
                    DataBasketEntry<T> dbe)
Called when a remove must be commited.

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

SalesPoint v3.3 API