chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1782188 - in /chemistry/opencmis/trunk/chemistry-opencmis-client: chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/
Date Wed, 08 Feb 2017 14:40:26 GMT
Author: fmui
Date: Wed Feb  8 14:40:26 2017
New Revision: 1782188

URL: http://svn.apache.org/viewvc?rev=1782188&view=rev
Log:
added another convenience method to QueryStatement

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryStatement.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryStatement.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryStatement.java?rev=1782188&r1=1782187&r2=1782188&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryStatement.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/QueryStatement.java
Wed Feb  8 14:40:26 2017
@@ -167,8 +167,7 @@ public interface QueryStatement extends
      * <td>\</td>
      * <td>\\</td>
      * <td>\\\\<br>
-     * <em>(for any other character following other than * ?
-     * -)</em></td>
+     * <em>(for any other character following other than * ? -)</em></td>
      * </tr>
      * <tr>
      * <td>\*</td>
@@ -317,6 +316,13 @@ public interface QueryStatement extends
     String toQueryString();
 
     /**
+     * Executes the query with {@code searchAllVersions) set to {@code false}.
+     * 
+     * @see Session#query(String, boolean)
+     */
+    ItemIterable<QueryResult> query();
+
+    /**
      * Executes the query.
      * 
      * @param searchAllVersions

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java?rev=1782188&r1=1782187&r2=1782188&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/QueryStatementImpl.java
Wed Feb  8 14:40:26 2017
@@ -572,6 +572,11 @@ public class QueryStatementImpl implemen
     }
 
     @Override
+    public ItemIterable<QueryResult> query() {
+        return session.query(toQueryString(), false);
+    }
+
+    @Override
     public ItemIterable<QueryResult> query(boolean searchAllVersions) {
         return session.query(toQueryString(), searchAllVersions);
     }



Mime
View raw message