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

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

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

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.avoscloudAVQueryaddOrItems

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
  • addWhereItem
  • addAndItems,
  • addWhereItem,
  • doCloudQuery,
  • generateQueryPath,
  • get,
  • getFirstInBackground,
  • getInBackground,
  • getInclude,
  • getLimit

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ImageIO (javax.imageio)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Sublime Text plugins
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