gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [08/17] gora git commit: adding default values for readthrough and writethrough
Date Fri, 05 Aug 2016 10:41:31 GMT
adding default values for readthrough and writethrough


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/c9d11af5
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/c9d11af5
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/c9d11af5

Branch: refs/heads/master
Commit: c9d11af58f80f200972f4c59a11cfbb6afbbb532
Parents: 897c787
Author: Kevin Ratnasekera <djkevincr@yahoo.com>
Authored: Mon Aug 1 03:17:00 2016 +0530
Committer: Kevin Ratnasekera <djkevincr@yahoo.com>
Committed: Mon Aug 1 03:17:00 2016 +0530

----------------------------------------------------------------------
 .../org/apache/gora/jcache/store/JCacheCacheWriterFactory.java   | 2 +-
 .../src/main/java/org/apache/gora/jcache/store/JCacheStore.java  | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/c9d11af5/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheCacheWriterFactory.java
----------------------------------------------------------------------
diff --git a/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheCacheWriterFactory.java
b/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheCacheWriterFactory.java
index 5743b5a..7d883d7 100644
--- a/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheCacheWriterFactory.java
+++ b/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheCacheWriterFactory.java
@@ -30,7 +30,7 @@ public class JCacheCacheWriterFactory<K, T extends PersistentBase>
implements Fa
   private transient JCacheCacheWriter<K,T> instance;
 
   public JCacheCacheWriterFactory(JCacheCacheWriter<K,T> instance) {
-    LOG.info("JCache entry writer factory initialized successfully.");
+    LOG.info("JCache cache writer factory initialized successfully.");
     this.instance = instance;
   }
 

http://git-wip-us.apache.org/repos/asf/gora/blob/c9d11af5/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheStore.java
----------------------------------------------------------------------
diff --git a/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheStore.java b/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheStore.java
index 3f0f348..7d3622b 100644
--- a/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheStore.java
+++ b/gora-jcache/src/main/java/org/apache/gora/jcache/store/JCacheStore.java
@@ -155,9 +155,13 @@ public class JCacheStore<K, T extends PersistentBase> extends DataStoreBase<K,
T
     cacheConfig.setTypes(keyClass, persistentClass);
     if (properties.getProperty(JCACHE_READ_THROUGH_PROPERTY_KEY) != null) {
       cacheConfig.setReadThrough(Boolean.valueOf(properties.getProperty(JCACHE_READ_THROUGH_PROPERTY_KEY)));
+    } else {
+      cacheConfig.setReadThrough(true);
     }
     if (properties.getProperty(JCACHE_WRITE_THROUGH_PROPERTY_KEY) != null) {
       cacheConfig.setWriteThrough(Boolean.valueOf(properties.getProperty(JCACHE_WRITE_THROUGH_PROPERTY_KEY)));
+    } else {
+      cacheConfig.setWriteThrough(true);
     }
     if (properties.getProperty(JCACHE_STORE_BY_VALUE_PROPERTY_KEY) != null) {
       cacheConfig.setStoreByValue(Boolean.valueOf(properties.getProperty(JCACHE_STORE_BY_VALUE_PROPERTY_KEY)));


Mime
View raw message