Interface ITransaction

All Known Subinterfaces:
IActivePivotTransaction, IAggregateProviderHolderTransaction, IAggregateProviderTransaction, IAsyncTransaction, IAxisHierarchyTransaction, IConcreteReferenceTransaction, ICubeTransaction, IDatastoreSchemaTransaction, IDistributedActivePivotTransaction, IDistributedAxisHierarchyTransaction, IDistributedHierarchyTransaction, IDistributedMeasureHierarchyTransaction, IGlobalAggregateProviderTransaction, IHierarchyTransaction, IIndexTransaction, IIntegerArrayTransaction, ILongArrayTransaction, IMeasureHierarchyTransaction, IRecordIndexTransaction, IRecordSetTransaction, ISecondaryRecordIndexTransaction, IStorePartitionTransaction, IStoreTransaction, IUniqueRecordIndexTransaction
All Known Implementing Classes:
AAggregateProviderTransaction, AConcreteReferenceTransaction, ActivePivotTransaction, AggregateProviderHolderTransaction, AGlobalAggregateProviderTransaction, AHierarchyTransaction, AIndexedAggregateProviderTransaction, AIndexedPartitionedAggregateProviderTransaction, AMultiVersionAxisHierarchy.AxisHierarchyTransaction, APartitionedAggregateProviderTransaction, ARecordSetTransaction, AUniqueRecordIndexTransaction, BitmapAggregateProviderTransaction, BitmapPartitionedAggregateProviderTransaction, ColumnarRecordSetTransaction, CubeTransaction, DatastoreStructuralTransaction, DistributedActivePivotTransaction, DistributedAxisHierarchyTransaction, DistributedMeasureHierarchyTransaction, FencedColumnarRecordSetTransaction, IntegerArrayTransaction, LazyDeleteLinkedIndexTransaction, LeafAggregateProviderTransaction, LeafPartitionedAggregateProviderTransaction, LongArrayTransaction, MeasureHierarchyTransaction, SecondaryRecordIndexTransaction, StorePartitionTransaction, StoreTransaction

public interface ITransaction
A transaction on a versioned Object.
Author:
ActiveViam
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commit(IEpoch epoch)
    Commits this transaction into the base version.
    boolean
    Returns whether this transaction does not have any transient data to commit.
    void
    Prepares this transaction for committing.
    void
    Rolls the transaction back.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Returns whether this transaction does not have any transient data to commit.
      Returns:
      true if this transaction does not have any transient data to commit, false otherwise
    • prepareCommit

      void prepareCommit(IEpoch epoch)
      Prepares this transaction for committing.
      Parameters:
      epoch - the commit's epoch
    • commit

      void commit(IEpoch epoch)
      Commits this transaction into the base version.
      Parameters:
      epoch - the commit's epoch
    • rollback

      void rollback()
      Rolls the transaction back.

      This transaction object cannot be re-used after being rolled back.