com.hammurapi.store

## Interface Transaction<T,PK,S extends Store<T,PK,S>>

- Type Parameters:
    `T` -
    `PK` -
  All Superinterfaces:
    Iterable<T>, ReadWriteLock, Store<T,PK,S>

      public interface Transaction<T,PK,S extends Store<T,PK,S>>
      extends Store<T,PK,S>

  Transaction.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.hammurapi.store.Store

      `Store.Handle<T,PK,S extends Store<T,PK,S>>, Store.QueryTask<T,PK,S extends Store<?,PK,S>>, Store.StoreIterator<T>, Store.UpdateTask<T,PK,S extends Store<T,PK,S>>, Store.ViewType`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `commit()` Commits transaction, releases locks.
    `void` | `rollback()` Rolls back transaction, undoes changes and releases locks.

    - ### Methods inherited from interface com.hammurapi.store.Store

      `addIndex, clear, createUnmodifiableFacade, createView, get, get, getAll, getByPrimaryKey, getMultiple, getPrimaryKeyExtractor, put, query, query, queryAll, queryMultiple, remove, remove, removeByPrimaryKey, update`

    - ### Methods inherited from interface java.util.concurrent.locks.ReadWriteLock

      `readLock, writeLock`

    - ### Methods inherited from interface java.lang.Iterable

      `iterator`

- - ### Method Detail

    - #### commit

          void commit()

      Commits transaction, releases locks.

    - #### rollback

          void rollback()

      Rolls back transaction, undoes changes and releases locks.