001package com.hammurapi.store;
002
003/**
004 * Transaction.
005 * @author Pavel Vlasov
006 *
007 * @param <T>
008 * @param <PK>
009 */
010public interface Transaction<T, PK, S extends Store<T,PK,S>> extends Store<T, PK, S> {
011        
012        /**
013         * Commits transaction, releases locks.
014         */
015        void commit();
016        
017        /**
018         * Rolls back transaction, undoes changes and releases locks.
019         */
020        void rollback();
021
022}