Tabnine Logo
AVQuery.setWhere
Code IndexAdd Tabnine to your IDE (free)

How to use
setWhere
method
in
com.avos.avoscloud.AVQuery

Best Java code snippets using com.avos.avoscloud.AVQuery.setWhere (Showing top 4 results out of 315)

origin: cn.leancloud.android/avoscloud-sdk

public static <T extends AVObject> AVQuery<T> and(List<AVQuery<T>> queries) {
 String className = null;
 if (queries.size() > 0) {
  className = queries.get(0).getClassName();
 }
 AVQuery<T> result = new AVQuery<T>(className);
 if (queries.size() > 1) {
  for (AVQuery<T> query : queries) {
   if (!className.equals(query.getClassName())) {
    throw new IllegalArgumentException("All queries must be for the same class");
   }
   result.addAndItems(query);
  }
 } else {
  result.setWhere(queries.get(0).conditions.getWhere());
 }
 return result;
}
origin: cn.leancloud/leancloud-common

public static <T extends AVObject> AVQuery<T> and(List<AVQuery<T>> queries) {
 String className = null;
 if (queries.size() > 0) {
  className = queries.get(0).getClassName();
 }
 AVQuery<T> result = new AVQuery<T>(className);
 if (queries.size() > 1) {
  for (AVQuery<T> query : queries) {
   if (!className.equals(query.getClassName())) {
    throw new IllegalArgumentException("All queries must be for the same class");
   }
   result.addAndItems(query);
  }
 } else {
  result.setWhere(queries.get(0).conditions.getWhere());
 }
 return result;
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Constructs a query that is the or of the given queries.
 *
 * @param queries The list of AVQueries to 'or' together
 * @return A AVQuery that is the 'or' of the passed in queries
 */
public static <T extends AVObject> AVQuery<T> or(List<AVQuery<T>> queries) {
 String className = null;
 if (queries.size() > 0) {
  className = queries.get(0).getClassName();
 }
 AVQuery<T> result = new AVQuery<T>(className);
 if (queries.size() > 1) {
  for (AVQuery<T> query : queries) {
   if (!className.equals(query.getClassName())) {
    throw new IllegalArgumentException("All queries must be for the same class");
   }
   result.addOrItems(new QueryOperation("$or", "$or", query.conditions
     .compileWhereOperationMap()));
  }
 } else {
  result.setWhere(queries.get(0).conditions.getWhere());
 }
 return result;
}
origin: cn.leancloud/leancloud-common

/**
 * Constructs a query that is the or of the given queries.
 *
 * @param queries The list of AVQueries to 'or' together
 * @return A AVQuery that is the 'or' of the passed in queries
 */
public static <T extends AVObject> AVQuery<T> or(List<AVQuery<T>> queries) {
 String className = null;
 if (queries.size() > 0) {
  className = queries.get(0).getClassName();
 }
 AVQuery<T> result = new AVQuery<T>(className);
 if (queries.size() > 1) {
  for (AVQuery<T> query : queries) {
   if (!className.equals(query.getClassName())) {
    throw new IllegalArgumentException("All queries must be for the same class");
   }
   result.addOrItems(new QueryOperation("$or", "$or", query.conditions
     .compileWhereOperationMap()));
  }
 } else {
  result.setWhere(queries.get(0).conditions.getWhere());
 }
 return result;
}
com.avos.avoscloudAVQuerysetWhere

Popular methods of AVQuery

  • whereEqualTo
    Add a constraint to the query that requires a particular key's value to be equal to the provided val
  • <init>
  • findInBackground
    Retrieves a list of AVObjects that satisfy this query from the server in a background thread. This i
  • setLimit
    Controls the maximum number of results that are returned. Setting a negative limit denotes retrieval
  • assembleParameters
  • getClassName
    Accessor for the class name.
  • countInBackground
  • doCloudQueryInBackground
    通过cql查询对象
  • find
    Retrieves a list of AVObjects that satisfy this query. Uses the network and/or the cache, depending
  • whereNotContainedIn
    Add a constraint to the query that requires a particular key's value not be contained in the provide
  • addAndItems
  • addOrItems
  • addAndItems,
  • addOrItems,
  • addWhereItem,
  • doCloudQuery,
  • generateQueryPath,
  • get,
  • getFirstInBackground,
  • getInBackground,
  • getInclude,
  • getLimit

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now