From c6c15f62d7e1029932902c20b97e46c1458828eb Mon Sep 17 00:00:00 2001 From: costin Date: Thu, 16 Sep 2010 13:53:36 +0300 Subject: [PATCH] SGF-21 + minor formatting --- .../gemfire/GemfireTransactionManager.java | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/springframework/data/gemfire/GemfireTransactionManager.java b/src/main/java/org/springframework/data/gemfire/GemfireTransactionManager.java index 716036c4..5606dd4a 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireTransactionManager.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireTransactionManager.java @@ -35,15 +35,15 @@ import com.gemstone.gemfire.cache.CommitConflictException; import com.gemstone.gemfire.cache.Region; /** - * Local transaction manager for Gemfire Enterprise Fabric (GEF). Provides a {@link PlatformTransactionManager} - * implementation for a single Gemfire {@link CacheTransactionManager}. + * Local transaction manager for GemFire Enterprise Fabric (GEF). Provides a {@link PlatformTransactionManager} + * implementation for a single GemFire {@link CacheTransactionManager}. * - * Binds one or multiple Gemfire regions for the specified {@link Cache} to the thread, potentially allowing for one + * Binds one or multiple GemFire regions for the specified {@link Cache} to the thread, potentially allowing for one * region per cache model. * *

* This local strategy is an alternative to executing cache operations within JTA transactions. Its advantage is that - * is able to work in any environment, for example a standalone application or a test suite. It is not able to + * is able to work in any environment, for example a stand-alone application or a test suite. It is not able to * provide XA transactions, for example to share transactions with data access. * *

@@ -224,6 +224,18 @@ public class GemfireTransactionManager extends AbstractPlatformTransactionManage this.copyOnRead = copyOnRead; } + + /** + * Indicates whether copy on read is set or not on the transaction manager. + * + * @see #setCopyOnRead(boolean) + * @return the copyOnRead + */ + public boolean isCopyOnRead() { + return copyOnRead; + } + + /** * GemfireTM local transaction object. *