Package com.qfs.multiversion
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 TypeMethodDescriptionvoidCommits this transaction into the base version.booleanisEmpty()Returns whether this transaction does not have any transient data to commit.voidprepareCommit(IEpoch epoch) Prepares this transaction for committing.voidrollback()Rolls the transaction back.
-
Method Details
-
isEmpty
boolean isEmpty()Returns whether this transaction does not have any transient data to commit.- Returns:
trueif this transaction does not have any transient data to commit,falseotherwise
-
prepareCommit
Prepares this transaction for committing.- Parameters:
epoch- the commit's epoch
-
commit
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.
-