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

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

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

origin: cn.leancloud.android/avoscloud-sdk

private void getFirstInBackground(boolean sync, GetCallback<T> callback) {
 this.assembleParameters();
 Map<String, String> parameters = getParameters();
 parameters.put("limit", Integer.toString(1));
origin: cn.leancloud/leancloud-common

private void getFirstInBackground(boolean sync, GetCallback<T> callback) {
 this.assembleParameters();
 Map<String, String> parameters = getParameters();
 parameters.put("limit", Integer.toString(1));
origin: cn.leancloud/leancloud-common

private void generateQueryPath() {
 // This method is only used for cache and currently only storage service use cache
 if (AVUtils.isBlankString(queryPath)) {
  conditions.assembleParameters();
  queryPath =
    PaasClient.storageInstance().buildUrl(queryPath(), new AVRequestParams(getParameters()));
 }
}
origin: cn.leancloud.android/avoscloud-sdk

private void generateQueryPath() {
 // This method is only used for cache and currently only storage service use cache
 if (AVUtils.isBlankString(queryPath)) {
  conditions.assembleParameters();
  queryPath =
    PaasClient.storageInstance().buildUrl(queryPath(),
        new AVRequestParams(getParameters()));
 }
}
origin: cn.leancloud.android/avoscloud-sdk

final List<T> result = new ArrayList<T>();
queryPath =
  PaasClient.storageInstance().getObject(path, new AVRequestParams(getParameters()), true,
    null, new GenericObjectCallback() {
     @Override
origin: cn.leancloud/leancloud-common

final List<T> result = new ArrayList<T>();
queryPath =
  PaasClient.storageInstance().getObject(path, new AVRequestParams(getParameters()), true,
    null, new GenericObjectCallback() {
     @Override
origin: cn.leancloud.android/avoscloud-sdk

PaasClient.storageInstance().getObject(path, new AVRequestParams(getParameters()), false,
  null, new GenericObjectCallback() {
   @Override
origin: cn.leancloud/leancloud-common

PaasClient.storageInstance().getObject(path, new AVRequestParams(getParameters()), false,
  null, new GenericObjectCallback() {
   @Override
origin: cn.leancloud/leancloud-common

/**
 * Gets a query that can be used to query the subclass objects in this relation.
 * 
 * @param clazz The AVObject subclass.
 * @return A AVQuery that restricts the results to objects in this relations.
 */
public AVQuery<T> getQuery(Class<T> clazz) {
 if (getParent() == null || AVUtils.isBlankString(getParent().getObjectId())) {
  throw new IllegalStateException("unable to encode an association with an unsaved AVObject");
 }
 Map<String, Object> map = new HashMap<String, Object>() {
  {
   put("object", AVUtils.mapFromPointerObject(AVRelation.this.getParent()));
   put("key", AVRelation.this.getKey());
  }
 };
 Map<String, Object> result = new HashMap<String, Object>();
 result.put("$relatedTo", map);
 String targetClassName = getTargetClass();
 if (AVUtils.isBlankString(getTargetClass())) {
  targetClassName = getParent().getClassName();
 }
 AVQuery<T> query = new AVQuery<T>(targetClassName, clazz);
 query.addWhereItem("$relatedTo", null, map);
 if (AVUtils.isBlankString(getTargetClass())) {
  query.getParameters().put("redirectClassNameForKey", this.getKey());
 }
 return query;
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Gets a query that can be used to query the subclass objects in this relation.
 * 
 * @param clazz The AVObject subclass.
 * @return A AVQuery that restricts the results to objects in this relations.
 */
public AVQuery<T> getQuery(Class<T> clazz) {
 if (getParent() == null || AVUtils.isBlankString(getParent().getObjectId())) {
  throw new IllegalStateException("unable to encode an association with an unsaved AVObject");
 }
 Map<String, Object> map = new HashMap<String, Object>() {
  {
   put("object", AVUtils.mapFromPointerObject(AVRelation.this.getParent()));
   put("key", AVRelation.this.getKey());
  }
 };
 Map<String, Object> result = new HashMap<String, Object>();
 result.put("$relatedTo", map);
 String targetClassName = getTargetClass();
 if (AVUtils.isBlankString(getTargetClass())) {
  targetClassName = getParent().getClassName();
 }
 AVQuery<T> query = new AVQuery<T>(targetClassName, clazz);
 query.addWhereItem("$relatedTo", null, map);
 if (AVUtils.isBlankString(getTargetClass())) {
  query.getParameters().put("redirectClassNameForKey", this.getKey());
 }
 return query;
}
origin: cn.leancloud.android/avoscloud-sdk

final GetCallback<T> internalCallback = callback;
this.assembleParameters();
PaasClient.storageInstance().getObject(path, new AVRequestParams(getParameters()), sync, null,
  new GenericObjectCallback() {
   @Override
origin: cn.leancloud/leancloud-common

final GetCallback<T> internalCallback = callback;
this.assembleParameters();
PaasClient.storageInstance().getObject(path, new AVRequestParams(getParameters()), sync, null,
  new GenericObjectCallback() {
   @Override
com.avos.avoscloudAVQuerygetParameters

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

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • CodeWhisperer 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