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

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

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

origin: cn.leancloud.android/avoscloud-sdk

@Override
public Map<String, String> assembleParameters() {
 if (selfStatusQuery && inboxType != null) {
  this.whereEqualTo("inboxType", inboxType);
 }
 super.assembleParameters();
 Map<String, String> p = this.getParameters();
 if (owner != null) {
  String ownerId = owner.getObjectId();
  Map<String, Object> ownerMap = AVUtils.mapFromUserObjectId(ownerId);
  p.put("owner", JSON.toJSONString(ownerMap));
 }
 if (sinceId > 0) {
  p.put("sinceId", String.valueOf(sinceId));
 }
 if (!AVUtils.isBlankString(inboxType) && !selfStatusQuery) {
  p.put("inboxType", inboxType);
 }
 if (maxId > 0) {
  p.put("maxId", String.valueOf(maxId));
 }
 if (count) {
  p.put("count", "1");
 }
 conditions.setParameters(p);
 return p;
}
origin: cn.leancloud.android/avoscloud-push

 pushQuery.whereEqualTo(deviceTypeTag, pushTarget.toArray()[0]);
Map<String, String> pushParameters = pushQuery.assembleParameters();
if (pushParameters.keySet().size() > 0 && !AVUtils.isBlankString(cql)) {
 throw new IllegalStateException("You can't use AVQuery and Cloud query at the same time.");
origin: cn.leancloud/leancloud-common

@Override
public Map<String, String> assembleParameters() {
 if (selfStatusQuery && inboxType != null) {
  this.whereEqualTo("inboxType", inboxType);
 }
 super.assembleParameters();
 Map<String, String> p = this.getParameters();
 if (owner != null) {
  String ownerId = owner.getObjectId();
  Map<String, Object> ownerMap = AVUtils.mapFromUserObjectId(ownerId);
  p.put("owner", JSON.toJSONString(ownerMap));
 }
 if (sinceId > 0) {
  p.put("sinceId", String.valueOf(sinceId));
 }
 if (!AVUtils.isBlankString(inboxType) && !selfStatusQuery) {
  p.put("inboxType", inboxType);
 }
 if (maxId > 0) {
  p.put("maxId", String.valueOf(maxId));
 }
 if (count) {
  p.put("count", "1");
 }
 conditions.setParameters(p);
 return p;
}
origin: cn.leancloud/java-sdk

 pushQuery.whereEqualTo(deviceTypeTag, pushTarget.toArray()[0]);
Map<String, String> pushParameters = pushQuery.assembleParameters();
if (pushParameters.keySet().size() > 0 && !AVUtils.isBlankString(cql)) {
 throw new IllegalStateException("You can't use AVQuery and Cloud query at the same time.");
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.android/avoscloud-push

Map<String, String> params = query.assembleParameters();
params.put("className", query.getClassName());
origin: cn.leancloud.android/avoscloud-sdk

this.assembleParameters();
final List<T> result = new ArrayList<T>();
queryPath =
origin: cn.leancloud/leancloud-common

this.assembleParameters();
final List<T> result = new ArrayList<T>();
queryPath =
origin: cn.leancloud.android/avoscloud-sdk

assembleParameters();
final FindCallback<T> internalCallback = callback;
origin: cn.leancloud/leancloud-common

assembleParameters();
final FindCallback<T> internalCallback = callback;
origin: cn.leancloud.android/avoscloud-sdk

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

final String path = AVPowerfulUtils.getEndpointByAVClassName(getClassName(), objectId);
final GetCallback<T> internalCallback = callback;
this.assembleParameters();
PaasClient.storageInstance().getObject(path, new AVRequestParams(getParameters()), sync, null,
  new GenericObjectCallback() {
com.avos.avoscloudAVQueryassembleParameters

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for Android Studio
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