Package com.google.appengine.api.datastore

Examples of com.google.appengine.api.datastore.Query$Filter


    super(TagEntity.class);
  }

  @Override
  public TagEntity getByName(final Long parent, final String name) {
    Query q = newQuery();
    q.addFilter("parent", EQUAL, parent);
    q.addFilter("name", EQUAL, name);
    return selectOne(q, "getByName", params(parent, name));
  }
View Full Code Here


    return selectOne(q, "getByName", params(parent, name));
  }

  @Override
  public List<TagEntity> selectByParent(final Long parent) {
    Query q = newQuery();
    q.addFilter("parent", EQUAL, parent);
    return select(q, "selectByParent", params(parent));
  }
View Full Code Here

    super(PageDependencyEntity.class);
  }

  @Override
  public List<PageDependencyEntity> selectByPage(final String pageUrl) {
    Query q = newQuery();
    q.addFilter("page", EQUAL, pageUrl);
    return select(q, "getByPage", params(pageUrl));
  }
View Full Code Here

    return select(q, "getByPage", params(pageUrl));
  }
 
  @Override
  public List<PageDependencyEntity> selectByDependency(final String pageUrl) {
    Query q = newQuery();
    q.addFilter("dependency", EQUAL, pageUrl);
    return select(q, "getByDependency", params(pageUrl));
  }
View Full Code Here

  }

  @Override
  public PageDependencyEntity getByPageAndDependency(String pageUrl,
      String dependency) {
    Query q = newQuery();
    q.addFilter("page", EQUAL, pageUrl);
    q.addFilter("dependency", EQUAL, dependency);
    return selectOne(q, "getByPageAndDependency", params(pageUrl, dependency));
  }
View Full Code Here

      addSessionCleanTask();
    }
    else {
          DatastoreService datastore = getBusiness().getSystemService()
              .getDatastore();
          Query query = new Query("_ah_SESSION");
          query.addFilter("_expires", FilterOperator.LESS_THAN,
              System.currentTimeMillis());
          PreparedQuery results = datastore.prepare(query);
          int i = 0;
          boolean end = true;
          for (Entity session : results.asIterable()) {
View Full Code Here

    getDatastore().delete(getKeys(ids));
  }

  @Override
  public void removeAll() {
    Query q = newQuery();
    removeSelected(q);
  }
View Full Code Here

  @Override
  public List<T> select() {
    List<T> result = (List<T>) getQueryCache().getQuery(clazz,
        clazz.getName(), null);
    if (result == null) {
      Query q = newQuery();
      result = selectNotCache(q);
      getQueryCache().putQuery(clazz, clazz.getName(), null,
          (List<BaseEntity>)result);
    }
    return result;
View Full Code Here

  protected Object[] params(Object...objects) {
    return objects;
  }

  protected Query newQuery() {
    return new Query(getKind());
  }
View Full Code Here

    }
  }

  @Override
  public List<FileEntity> getByFolder(Long folderId) {
    Query q = newQuery();
    q.addFilter("folderId", EQUAL, folderId);
    return select(q, "getByFolder", params(folderId));
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.Query$Filter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.