diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.model/src/org/eclipse')
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/ITransactionDataAccessor.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/ITransactionDataAccessor.java index 91da62a3336..58d6b2bbe43 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/ITransactionDataAccessor.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/ITransactionDataAccessor.java @@ -50,4 +50,6 @@ public interface ITransactionDataAccessor { public void load(TransactionCache transactionCache) throws OseeCoreException; + public TransactionRecord getOrLoadPriorTransaction(TransactionCache cache, int transactionNumber, int branchId) throws OseeCoreException; + }
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java index 8e77ef1e1e3..4aa3a6ab9dc 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java @@ -151,6 +151,10 @@ public class TransactionCache implements IOseeCache<TransactionRecord> { public void storeItems(Collection<TransactionRecord> toStore) throws OseeCoreException { } + public TransactionRecord getPriorTransaction(TransactionRecord transactionId) throws OseeCoreException { + return getDataAccessor().getOrLoadPriorTransaction(this, transactionId.getId(), transactionId.getBranchId()); + } + public TransactionRecord getTransaction(Branch branch, TransactionVersion revision) throws OseeCoreException { TransactionRecord toReturn = null; if (TransactionVersion.BASE == revision) { |