From ee2c0e31f951aa86f2471ebcfb84272e167c0377 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sun, 20 Jan 2008 23:08:29 +0000 Subject: Terminology updates. --- src/main/java/com/amazon/carbonado/spi/TransactionManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/amazon/carbonado/spi/TransactionManager.java b/src/main/java/com/amazon/carbonado/spi/TransactionManager.java index 2ee503b..9afddd8 100644 --- a/src/main/java/com/amazon/carbonado/spi/TransactionManager.java +++ b/src/main/java/com/amazon/carbonado/spi/TransactionManager.java @@ -37,13 +37,13 @@ import com.amazon.carbonado.Transaction; public abstract class TransactionManager { private static final int NOT_CLOSED = 0, CLOSED = 1, SUSPENDED = 2; - private final ThreadLocal> mCurrentScope; + private final ThreadLocal> mLocalScope; private final Map, ?> mAllScopes; private int mClosedState; public TransactionManager() { - mCurrentScope = new ThreadLocal>(); + mLocalScope = new ThreadLocal>(); mAllScopes = new WeakIdentityMap(); } @@ -51,7 +51,7 @@ public abstract class TransactionManager { * Returns the thread-local TransactionScope, creating it if needed. */ public TransactionScope localTransactionScope() { - TransactionScope scope = mCurrentScope.get(); + TransactionScope scope = mLocalScope.get(); if (scope == null) { int closedState; synchronized (this) { @@ -59,7 +59,7 @@ public abstract class TransactionManager { scope = new TransactionScope(this, closedState != NOT_CLOSED); mAllScopes.put(scope, null); } - mCurrentScope.set(scope); + mLocalScope.set(scope); if (closedState == SUSPENDED) { // Immediately suspend new scope. scope.getLock().lock(); -- cgit v1.2.3