ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [12/48] incubator-ignite git commit: #ignite-738: Remove createSqlQuery from CacheQueries.
Date Thu, 16 Apr 2015 08:38:12 GMT
#ignite-738: Remove createSqlQuery from CacheQueries.


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

Branch: refs/heads/ignite-737
Commit: 23e53bfdea74b023549b2e9a3facdf407be423cd
Parents: ec2d55e
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Mon Apr 13 18:15:39 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Mon Apr 13 18:15:39 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/query/CacheQueries.java | 10 ----------
 .../processors/cache/query/GridCacheQueriesImpl.java  | 14 --------------
 .../processors/cache/query/GridCacheQueriesProxy.java | 12 ------------
 3 files changed, 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/23e53bfd/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/CacheQueries.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/CacheQueries.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/CacheQueries.java
index aedf1b0..909e175 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/CacheQueries.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/CacheQueries.java
@@ -36,16 +36,6 @@ import java.util.*;
  */
 public interface CacheQueries<K, V> {
     /**
-     * Creates user's SQL query, queried class, and query clause which is generally
-     * a where clause. For more information refer to {@link CacheQuery} documentation.
-     *
-     * @param clsName Query class name.
-     * @param clause Query clause.
-     * @return Created query.
-     */
-    public CacheQuery<Map.Entry<K, V>> createSqlQuery(String clsName, String
clause);
-
-    /**
      * Creates user's SQL fields query for given clause. For more information refer to
      * {@link CacheQuery} documentation.
      *

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/23e53bfd/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesImpl.java
index 535ab14..d2ee813 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesImpl.java
@@ -63,20 +63,6 @@ public class GridCacheQueriesImpl<K, V> implements GridCacheQueriesEx<K,
V> {
     }
 
     /** {@inheritDoc} */
-    @Override public CacheQuery<Map.Entry<K, V>> createSqlQuery(String clsName,
String clause) {
-        A.notNull("clsName", clsName);
-        A.notNull("clause", clause);
-
-        return new GridCacheQueryAdapter<>(ctx,
-            SQL,
-            clsName,
-            clause,
-            null,
-            false,
-            prj != null && prj.isKeepPortable());
-    }
-
-    /** {@inheritDoc} */
     @Override public CacheQuery<List<?>> createSqlFieldsQuery(String qry) {
         A.notNull(qry, "qry");
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/23e53bfd/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesProxy.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesProxy.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesProxy.java
index 07b422c..6e85bf9 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesProxy.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueriesProxy.java
@@ -78,18 +78,6 @@ public class GridCacheQueriesProxy<K, V> implements GridCacheQueriesEx<K,
V>, Ex
     }
 
     /** {@inheritDoc} */
-    @Override public CacheQuery<Map.Entry<K, V>> createSqlQuery(String clsName,
String clause) {
-        GridCacheProjectionImpl<K, V> prev = gate.enter(prj);
-
-        try {
-            return delegate.createSqlQuery(clsName, clause);
-        }
-        finally {
-            gate.leave(prev);
-        }
-    }
-
-    /** {@inheritDoc} */
     @Override public CacheQuery<List<?>> createSqlFieldsQuery(String qry) {
         GridCacheProjectionImpl<K, V> prev = gate.enter(prj);
 


Mime
View raw message