com.hammurapi.store

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

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

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

- - ### 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
    --- | ---
    `Transaction<T,PK,S>` | `beginTransaction(boolean exclusive)` Starts a new transaction.

    - ### 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

    - #### beginTransaction

          Transaction<T,PK,S> beginTransaction(boolean exclusive)

      Starts a new transaction.
      Parameters:
        `exclusive` - If true, the transaction acquires write lock on the store when it is created and releases it when it is committed or rolled back. Otherwise no lock is acquired and individual locks are acquired by transaction's operations as needed.
      Returns:
        new transaction.