ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [30/39] incubator-ignite git commit: # IGNITE-891 - Cache store improvements
Date Tue, 02 Jun 2015 08:57:55 GMT
# IGNITE-891 - Cache store improvements


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/0d9f1a7c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/0d9f1a7c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/0d9f1a7c

Branch: refs/heads/ignite-876-2
Commit: 0d9f1a7c053fa00e39f231a83e5972643698dbdd
Parents: 084b689
Author: Valentin Kulichenko <vkulichenko@gridgain.com>
Authored: Wed May 27 21:33:49 2015 -0700
Committer: Valentin Kulichenko <vkulichenko@gridgain.com>
Committed: Wed May 27 21:33:49 2015 -0700

----------------------------------------------------------------------
 .../cache/store/CacheStoreSessionListener.java  |  2 +-
 .../spring/CacheSpringStoreSessionListener.java | 24 --------------------
 2 files changed, 1 insertion(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0d9f1a7c/modules/core/src/main/java/org/apache/ignite/cache/store/CacheStoreSessionListener.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/store/CacheStoreSessionListener.java
b/modules/core/src/main/java/org/apache/ignite/cache/store/CacheStoreSessionListener.java
index b319e55..1543bf9 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/store/CacheStoreSessionListener.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/store/CacheStoreSessionListener.java
@@ -65,7 +65,7 @@ import javax.sql.*;
  *         cache transaction, this listener is no-op.
  *     </li>
  *     <li>
- *         <@ignitelink org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener}
-
+ *         {@ignitelink org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener}
-
  *         Hibernate-based session listener. It creates a new Hibernate
  *         session for each Ignite session. If there is an ongoing cache
  *         transaction, a corresponding Hibernate transaction is created

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0d9f1a7c/modules/spring/src/main/java/org/apache/ignite/cache/store/spring/CacheSpringStoreSessionListener.java
----------------------------------------------------------------------
diff --git a/modules/spring/src/main/java/org/apache/ignite/cache/store/spring/CacheSpringStoreSessionListener.java
b/modules/spring/src/main/java/org/apache/ignite/cache/store/spring/CacheSpringStoreSessionListener.java
index 53fc599..0a32816 100644
--- a/modules/spring/src/main/java/org/apache/ignite/cache/store/spring/CacheSpringStoreSessionListener.java
+++ b/modules/spring/src/main/java/org/apache/ignite/cache/store/spring/CacheSpringStoreSessionListener.java
@@ -61,9 +61,6 @@ public class CacheSpringStoreSessionListener implements CacheStoreSessionListene
     /** Data source. */
     private DataSource dataSrc;
 
-    /** Propagation behavior. */
-    private int propagation = TransactionDefinition.PROPAGATION_REQUIRED;
-
     /** Logger. */
     @LoggerResource
     private IgniteLogger log;
@@ -110,26 +107,6 @@ public class CacheSpringStoreSessionListener implements CacheStoreSessionListene
         return dataSrc;
     }
 
-    /**
-     * Sets propagation behavior.
-     * <p>
-     * This parameter is optional.
-     *
-     * @param propagation Propagation behavior.
-     */
-    public void setPropagationBehavior(int propagation) {
-        this.propagation = propagation;
-    }
-
-    /**
-     * Gets propagation behavior.
-     *
-     * @return Propagation behavior.
-     */
-    public int getPropagationBehavior() {
-        return propagation;
-    }
-
     /** {@inheritDoc} */
     @Override public void start() throws IgniteException {
         if (txMgr == null && dataSrc == null)
@@ -197,7 +174,6 @@ public class CacheSpringStoreSessionListener implements CacheStoreSessionListene
 
         def.setName("Ignite Tx [cache=" + (cacheName != null ? cacheName : "<default>")
+ ", id=" + tx.xid() + ']');
         def.setIsolationLevel(isolationLevel(tx.isolation()));
-        def.setPropagationBehavior(propagation);
 
         long timeoutSec = (tx.timeout() + 500) / 1000;
 


Mime
View raw message