001    package data.ooimpl;
002    
003    import data.*;
004    
005    /**
006     * DataBasketEntrySource that knows how to rollback or commit remove 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 SelfManagingDBESource<T> extends DataBasketEntrySource {
015    
016        /**
017         * Called when a remove must be rolled back.
018         *
019         * @param db the DataBasket that issued the rollback request
020         * @param dbe the DataBasketEntry describing the operation to rollback.
021         *
022         * @override Always
023         */
024        public void commitRemove(DataBasket db, DataBasketEntry<T> dbe);
025    
026        /**
027         * Called when a remove must be commited.
028         *
029         * @param db the DataBasket that issued the commit request
030         * @param dbe the DataBasketEntry describing the operation to commit.
031         *
032         * @override Always
033         */
034        public void rollbackRemove(DataBasket db, DataBasketEntry<T> dbe);
035    }