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 ITransactionA transaction on a versioned Object.- Author:
- ActiveViam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcommit(IEpoch epoch)Commits 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 Detail
-
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
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.
-
-