com.thinkaurelius.titan.diskstorage

## Interface BaseTransaction

- All Known Subinterfaces:
    BaseTransactionConfigurable, LoggableTransaction, StoreTransaction
  All Known Implementing Classes:
    AbstractStoreTransaction, BackendTransaction, CacheTransaction, DefaultTransaction, ExpectedValueCheckingTransaction, IndexTransaction, NoOpStoreTransaction

      public interface BaseTransaction

  Represents a transaction for a particular storage backend.
  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `commit()` Commits the transaction and persists all modifications to the backend.
    `void` | `rollback()` Aborts (or rolls back) the transaction.

- - ### Method Detail

    - #### commit

          void commit()
                      throws BackendException

      Commits the transaction and persists all modifications to the backend. Call either this method or `rollback()` at most once per instance.
      Throws:
        `BackendException`

    - #### rollback

          void rollback()
                        throws BackendException

      Aborts (or rolls back) the transaction. Call either this method or `commit()` at most once per instance.
      Throws:
        `BackendException`

Copyright © 2012–2014. All rights reserved.