SalesPoint Framework v3.1

data.ooimpl
Interface SelfManagingDBEDestination

All Superinterfaces:
DataBasketEntryDestination
All Known Implementing Classes:
CatalogImpl, StockImpl

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

public 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

public 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.1