diff options
author | jphillips | 2009-03-20 15:12:58 +0000 |
---|---|---|
committer | jphillips | 2009-03-20 15:12:58 +0000 |
commit | 1706054b0eaef67d51c56c42a396063cf0a629de (patch) | |
tree | 3fa46e0787bafec071fd9bbbf9a8634f4a75bec3 | |
parent | 275fad72fb178f61f9329e39ccb9012dfbd2eedd (diff) | |
download | org.eclipse.osee-1706054b0eaef67d51c56c42a396063cf0a629de.tar.gz org.eclipse.osee-1706054b0eaef67d51c56c42a396063cf0a629de.tar.xz org.eclipse.osee-1706054b0eaef67d51c56c42a396063cf0a629de.zip |
-rw-r--r-- | org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionIdManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionIdManager.java b/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionIdManager.java index 60ffd82b4a9..a893ff4d7fb 100644 --- a/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionIdManager.java +++ b/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionIdManager.java @@ -46,7 +46,7 @@ public final class TransactionIdManager { "SELECT " + TRANSACTION_DETAIL_TABLE.columns("transaction_id", "commit_art_id", TXD_COMMENT, "time", "author",
"branch_id", "tx_type") + " FROM " + TRANSACTION_DETAIL_TABLE + " WHERE " + TRANSACTION_DETAIL_TABLE.column("branch_id") + " = ?" + " ORDER BY transaction_id DESC";
- private final Map<Integer, TransactionId> nonEditableTransactionIdCache = new HashMap<Integer, TransactionId>();
+ private final Map<Integer, TransactionId> transactionIdCache = new HashMap<Integer, TransactionId>();
private static final TransactionIdManager instance = new TransactionIdManager();
private TransactionIdManager() {
@@ -98,7 +98,7 @@ public final class TransactionIdManager { new TransactionId(transactionNumber, branch, comment, transactionTime, authorArtId, -1,
TransactionDetailsType.NonBaselined);
- instance.nonEditableTransactionIdCache.put(transactionNumber, transactionId);
+ instance.transactionIdCache.put(transactionNumber, transactionId);
return transactionId;
}
@@ -162,7 +162,7 @@ public final class TransactionIdManager { }
private synchronized static TransactionId getTransactionId(int transactionNumber, ConnectionHandlerStatement chStmt) throws OseeCoreException {
- TransactionId transactionId = instance.nonEditableTransactionIdCache.get(transactionNumber);
+ TransactionId transactionId = instance.transactionIdCache.get(transactionNumber);
boolean useLocalConnection = chStmt == null;
if (transactionId == null) {
try {
@@ -181,7 +181,7 @@ public final class TransactionIdManager { transactionId =
new TransactionId(transactionNumber, branch, chStmt.getString("osee_comment"),
chStmt.getTimestamp("time"), chStmt.getInt("author"), chStmt.getInt("commit_art_id"), txType);
- instance.nonEditableTransactionIdCache.put(transactionNumber, transactionId);
+ instance.transactionIdCache.put(transactionNumber, transactionId);
} finally {
if (useLocalConnection) {
chStmt.close();
|