Tabnine Logo
AVQuery.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.avos.avoscloud.AVQuery
constructor

Best Java code snippets using com.avos.avoscloud.AVQuery.<init> (Showing top 20 results out of 315)

origin: cn.leancloud/leancloud-common

/**
 * Constructs a query. A default query with no further parameters will retrieve all AVObjects of
 * the provided class.
 *
 * @param theClassName The name of the class to retrieve AVObjects for.
 * @return the query object.
 */
public static <T extends AVObject> AVQuery<T> getQuery(String theClassName) {
 return new AVQuery<T>(theClassName);
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Constructs a query. A default query with no further parameters will retrieve all AVObjects of
 * the provided class.
 *
 * @param theClassName The name of the class to retrieve AVObjects for.
 * @return the query object.
 */
public static <T extends AVObject> AVQuery<T> getQuery(String theClassName) {
 return new AVQuery<T>(theClassName);
}
origin: cn.leancloud.android/avoscloud-push

public static AVQuery<AVInstallation> getQuery() {
 AVQuery<AVInstallation> query = new AVQuery<AVInstallation>(INSTALLATION_AVNAME);
 return query;
}
origin: cn.leancloud/java-sdk

/**
 * Creates a new push notification. The default channel is the empty string, also known as the
 * global broadcast channel, but this value can be overridden using AVPush.setChannel(String),
 * AVPush.setChannels(Collection) or AVPush.setQuery(AVQuery). Before sending the push
 * notification you must call either AVPush.setMessage(String) or AVPush.setData(JSONObject).
 */
public AVPush() {
 channelSet = new HashSet<String>();
 pushData = new HashMap<String, Object>();
 pushTarget = new HashSet<String>(DEVICE_TYPES);
 pushQuery = new AVQuery(INSTALLATIONTAG);
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Gets a AVQuery over the Role collection.
 * 
 * @return A new query over the Role collection.
 */
public static AVQuery<AVRole> getQuery() {
 AVQuery<AVRole> query =
   new AVQuery<AVRole>(AVPowerfulUtils.getAVClassName(AVRole.class.getSimpleName()));
 return query;
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Constructs a query for AVUsers subclasses.
 */
public static <T extends AVUser> AVQuery<T> getUserQuery(Class<T> clazz) {
 AVQuery<T> query = new AVQuery<T>(userClassName(), clazz);
 return query;
}
origin: cn.leancloud/leancloud-common

/**
 * Gets a AVQuery over the Role collection.
 * 
 * @return A new query over the Role collection.
 */
public static AVQuery<AVRole> getQuery() {
 AVQuery<AVRole> query =
   new AVQuery<AVRole>(AVPowerfulUtils.getAVClassName(AVRole.class.getSimpleName()));
 return query;
}
origin: cn.leancloud/leancloud-common

/**
 * Constructs a query for AVUsers subclasses.
 * 
 * @param clazz class type of AVUser subclass for query
 * @param <T> subclass of AVUser
 * @return query of AVUser
 */
public static <T extends AVUser> AVQuery<T> getUserQuery(Class<T> clazz) {
 AVQuery<T> query = new AVQuery<T>(userClassName(), clazz);
 return query;
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Create a AVQuery with special sub-class.
 *
 * @param clazz The AVObject subclass
 * @return The AVQuery
 */
public static <T extends AVObject> AVQuery<T> getQuery(Class<T> clazz) {
 return new AVQuery<T>(getSubClassName(clazz), clazz);
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Create a AVQuery with special sub-class.
 *
 * @param clazz The AVObject subclass
 * @return The AVQuery
 */
public static <T extends AVObject> AVQuery<T> getQuery(Class<T> clazz) {
 return new AVQuery<T>(AVObject.getSubClassName(clazz), clazz);
}
origin: cn.leancloud/leancloud-common

/**
 * Create a AVQuery with special sub-class.
 *
 * @param clazz The AVObject subclass
 * @return The AVQuery
 */
public static <T extends AVObject> AVQuery<T> getQuery(Class<T> clazz) {
 return new AVQuery<T>(AVObject.getSubClassName(clazz), clazz);
}
origin: cn.leancloud/leancloud-common

/**
 * Create a AVQuery with special sub-class.
 *
 * @param clazz The AVObject subclass
 * @param <T> AVObject subclass
 * @return The AVQuery
 */
public static <T extends AVObject> AVQuery<T> getQuery(Class<T> clazz) {
 return new AVQuery<T>(getSubClassName(clazz), clazz);
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * clone a new query object, which fully same to this.
 *
 * @return a new AVQuery object.
 */
public AVQuery clone() {
 AVQuery query = new AVQuery(this.className, this.clazz);
 query.isRunning = false;
 query.cachePolicy = this.cachePolicy;
 query.maxCacheAge = this.maxCacheAge;
 query.queryPath = this.queryPath;
 query.externalQueryPath = this.externalQueryPath;
 query.conditions = null != this.conditions? this.conditions.clone(): null;
 return query;
}
origin: cn.leancloud.android/avoscloud-sdk

public void getRolesInBackground(final AVCallback<List<AVRole>> callback) {
 AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className);
 roleQuery.whereEqualTo(AVUSER_ENDPOINT, this);
 roleQuery.findInBackground(new FindCallback<AVRole>() {
  @Override
  public void done(List<AVRole> list, AVException e) {
   callback.internalDone(list, e);
  }
 });
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Create a query that can be used to query the parent objects in this relation.
 * 
 * @param parentClassName The parent class name
 * @param relationKey The relation field key in parent
 * @param child The child object.
 * @return A AVQuery that restricts the results to parent objects in this relations.
 */
public static <M extends AVObject> AVQuery<M> reverseQuery(String parentClassName,
  String relationKey, AVObject child) {
 AVQuery<M> query = new AVQuery<M>(parentClassName);
 query.whereEqualTo(relationKey, AVUtils.mapFromPointerObject(child));
 return query;
}
origin: cn.leancloud/leancloud-common

/**
 * Create a query that can be used to query the parent objects in this relation.
 * 
 * @param parentClassName The parent class name
 * @param relationKey The relation field key in parent
 * @param child The child object.
 * @return A AVQuery that restricts the results to parent objects in this relations.
 */
public static <M extends AVObject> AVQuery<M> reverseQuery(String parentClassName,
  String relationKey, AVObject child) {
 AVQuery<M> query = new AVQuery<M>(parentClassName);
 query.whereEqualTo(relationKey, AVUtils.mapFromPointerObject(child));
 return query;
}
origin: cn.leancloud.android/avoscloud-sdk

@JSONField(serialize = false)
public List<AVRole> getRoles() throws AVException {
 AVQuery<AVRole> roleQuery = new AVQuery<AVRole>(AVRole.className);
 roleQuery.whereEqualTo(AVUser.AVUSER_ENDPOINT, this);
 return roleQuery.find();
}
origin: cn.leancloud.android/avoscloud-sdk

/**
 * Create a query that can be used to query the parent objects in this relation.
 * 
 * @param theParentClazz The parent subclass.
 * @param relationKey The relation field key in parent
 * @param child The child object.
 * @return A AVQuery that restricts the results to parent objects in this relations.
 */
public static <M extends AVObject> AVQuery<M> reverseQuery(Class<M> theParentClazz,
  String relationKey, AVObject child) {
 AVQuery<M> query = new AVQuery<M>(AVObject.getSubClassName(theParentClazz), theParentClazz);
 query.whereEqualTo(relationKey, AVUtils.mapFromPointerObject(child));
 return query;
}
origin: cn.leancloud/leancloud-common

/**
 * Create a query that can be used to query the parent objects in this relation.
 * 
 * @param theParentClazz The parent subclass.
 * @param relationKey The relation field key in parent
 * @param child The child object.
 * @return A AVQuery that restricts the results to parent objects in this relations.
 */
public static <M extends AVObject> AVQuery<M> reverseQuery(Class<M> theParentClazz,
  String relationKey, AVObject child) {
 AVQuery<M> query = new AVQuery<M>(AVObject.getSubClassName(theParentClazz), theParentClazz);
 query.whereEqualTo(relationKey, AVUtils.mapFromPointerObject(child));
 return query;
}
origin: cn.leancloud/leancloud-common

/**
 * Retrieve a AVFile object by object id from AVOSCloud.If the file is not found,it will throw
 * java.io.FileNotFoundException.
 *
 * @param objectId objectId in _File table
 * @return AVFile AVFile instance
 * @throws AVException excpetion if _File table object failed to transfer to AVFile object
 * @throws FileNotFoundException exception if objectId is not invalid
 * @since 2.0.2
 */
public static AVFile withObjectId(String objectId) throws AVException, FileNotFoundException {
 AVQuery<AVObject> query = new AVQuery<AVObject>("_File");
 AVObject object = query.get(objectId);
 if (object != null && !AVUtils.isBlankString(object.getObjectId())) {
  AVFile file = createFileFromAVObject(object);
  return file;
 } else {
  throw new FileNotFoundException("Could not find file object by id:" + objectId);
 }
}
com.avos.avoscloudAVQuery<init>

Javadoc

Constructs a query. A default query with no further parameters will retrieve all AVObjects of the provided class.

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

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best plugins for Eclipse
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