package data.ooimpl;

import data.*;

/**
  * DataBasketEntryDestination that knows how to rollback or commit add operations.
  *
  * @see DataBasketEntryImpl
  *
  * @author Steffen Zschaler
  * @version 2.0 14/06/1999
  * @since v2.0
  */
public interface SelfManagingDBEDestination extends DataBasketEntryDestination {

  /**
    * Called when an add must be commited.
    *
    * @param db the DataBasket that issued the commit request
    * @param dbe the DataBasketEntry describing the operation to commit.
    *
    * @override Always
    */
  public void commitAdd (DataBasket db, DataBasketEntry dbe);

  /**
    * Called when an add must be rolled back.
    *
    * @param db the DataBasket that issued the rollback request
    * @param dbe the DataBasketEntry describing the operation to rollback.
    *
    * @override Always
    */
  public void rollbackAdd (DataBasket db, DataBasketEntry dbe);
}