/** * Delete all objects that are retrieved by this query. * * @since 1.4.0 * @throws AVException */ public void deleteAll() throws AVException { AVObject.deleteAll(this.find()); }
/** * Delete all objects that are retrieved by this query. * * @since 1.4.0 * @throws AVException */ public void deleteAll() throws AVException { AVObject.deleteAll(this.find()); }
private UpdateInfo getNewestUpdateInfo() throws AVException { AVQuery<UpdateInfo> query = AVObject.getQuery(UpdateInfo.class); query.setLimit(1); query.orderByDescending(UpdateInfo.VERSION); if (policy != null) { query.setCachePolicy(policy); } List<UpdateInfo> updateInfos = query.find(); if (updateInfos.size() > 0) { return updateInfos.get(0); } return null; }
@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(); }