001    package data.ooimpl;
002    
003    import data.*;
004    
005    /**
006     * DataBasketEntryDestination that knows how to rollback or commit add operations.
007     *
008     * @see DataBasketEntryImpl
009     *
010     * @author Steffen Zschaler
011     * @version 2.0 14/06/1999
012     * @since v2.0
013     */
014    public interface SelfManagingDBEDestination extends DataBasketEntryDestination {
015    
016        /**
017         * Called when an add must be commited.
018         *
019         * @param db the DataBasket that issued the commit request
020         * @param dbe the DataBasketEntry describing the operation to commit.
021         *
022         * @override Always
023         */
024        public void commitAdd(DataBasket db, DataBasketEntry dbe);
025    
026        /**
027         * Called when an add must be rolled back.
028         *
029         * @param db the DataBasket that issued the rollback request
030         * @param dbe the DataBasketEntry describing the operation to rollback.
031         *
032         * @override Always
033         */
034        public void rollbackAdd(DataBasket db, DataBasketEntry dbe);
035    }