From c16deb46c161aa3916abbb1d9a66653d6d9ae3e9 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sun, 20 Jan 2008 23:53:15 +0000 Subject: Hide TransactionScope.close method. --- .../com/amazon/carbonado/spi/TransactionScope.java | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'src/main/java/com/amazon') diff --git a/src/main/java/com/amazon/carbonado/spi/TransactionScope.java b/src/main/java/com/amazon/carbonado/spi/TransactionScope.java index fae5e88..604cf2d 100644 --- a/src/main/java/com/amazon/carbonado/spi/TransactionScope.java +++ b/src/main/java/com/amazon/carbonado/spi/TransactionScope.java @@ -168,29 +168,6 @@ public class TransactionScope { return mLock; } - /** - * Exits all transactions and closes all cursors. Should be called only - * when repository is closed. - */ - public void close() throws RepositoryException { - mLock.lock(); - try { - if (!mClosed) { - while (mActive != null) { - mActive.exit(); - } - if (mCursors != null) { - for (CursorList> cursorList : mCursors.values()) { - cursorList.closeCursors(); - } - } - } - } finally { - mClosed = true; - mLock.unlock(); - } - } - /** * Returns the implementation for the active transaction, or null if there * is no active transaction. @@ -232,6 +209,29 @@ public class TransactionScope { } } + /** + * Exits all transactions and closes all cursors. Should be called only + * when repository is closed. + */ + void close() throws RepositoryException { + mLock.lock(); + try { + if (!mClosed) { + while (mActive != null) { + mActive.exit(); + } + if (mCursors != null) { + for (CursorList> cursorList : mCursors.values()) { + cursorList.closeCursors(); + } + } + } + } finally { + mClosed = true; + mLock.unlock(); + } + } + /** * Caller must hold mLock. */ -- cgit v1.2.3