private void preLoadTransactions(AbstractBranchCacheMessage cacheMessage) throws OseeCoreException { Set<Integer> txIdsToLoad = new HashSet<Integer>(); addValidTxIds(cacheMessage.getBranchToBaseTx().values(), txIdsToLoad); addValidTxIds(cacheMessage.getBranchToSourceTx().values(), txIdsToLoad); txCache.loadTransactions(txIdsToLoad); }
private TransactionRecord getTx(Map<Integer, Integer> branchToTx, Integer branchId) throws OseeCoreException { TransactionRecord tx = null; Integer txId = branchToTx.get(branchId); if (txId != null && txId > 0) { tx = txCache.getOrLoad(txId); } return tx; }