Package com.google.appengine.api.datastore

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


  public TemplateDaoImpl() {
    super(TemplateEntity.class);
  }

  public TemplateEntity getByUrl(final String url) {
    Query q = newQuery();
    q.addFilter("url", FilterOperator.EQUAL, url);
    return selectOne(q, "getByUrl", params(url));
  }
View Full Code Here


  public FolderDaoImpl() {
    super(FolderEntity.class);
  }

  public List<FolderEntity> getByParent(final Long id) {
    Query q = newQuery();
    q.addFilter("parentId", EQUAL, id);
    return select(q, "getByParent", params(id));
  }
View Full Code Here

    return select(q, "getByParent", params(id));
  }
 
  public FolderEntity getByParentName(final Long parentId,
      final String name) {
    Query q = newQuery();
    q.addFilter("parentId", EQUAL, parentId);
    q.addFilter("name", EQUAL, name);
    return selectOne(q, "getByParentName", params(parentId, name));
  }
View Full Code Here

    super(FormDataEntity.class);
  }

  @Override
  public List<FormDataEntity> getByForm(final FormEntity form) {
    Query q = newQuery();
    q.addFilter("formId", EQUAL, form.getId());
    return select(q, "getByForm", params(form.getId()));
  }
View Full Code Here

    super(PageTagEntity.class);
  }

  @Override
  public PageTagEntity getByURL(final String url) {
    Query q = newQuery();
    q.addFilter("pageURL", EQUAL, url);
    return selectOne(q, "getByURL", params(url));
  }
View Full Code Here

  public SeoUrlDaoImpl() {
    super(SeoUrlEntity.class);
  }

  public SeoUrlEntity getByFrom(final String from) {
    Query q = newQuery();
    q.addFilter("fromLink", FilterOperator.EQUAL, from);
    return selectOne(q, "getByFrom", params(from));
  }
View Full Code Here

  public UserDaoImpl() {
    super(UserEntity.class);
  }

  public UserEntity getByEmail(final String email) {
    Query q = newQuery();
    q.addFilter("email", EQUAL, email);
    return selectOne(q, "getByEmail", params(email));
  }
View Full Code Here

    q.addFilter("email", EQUAL, email);
    return selectOne(q, "getByEmail", params(email));
  }

  public List<UserEntity> getByRole(final UserRole role) {
    Query q = newQuery();
    q.addFilter("role", EQUAL, role.name());
    return select(q, "getByRole", params(role));
  }
View Full Code Here

  @Override
  public UserEntity getByKey(String key) {
    if (key == null) {
      return null;
    }
    Query q = newQuery();
    q.addFilter("forgotPasswordKey", EQUAL, key);
    return selectOne(q, "getByKey", params(key));
  }
View Full Code Here

  public void onMessage(Message message) {
    SimpleMessage msg = (SimpleMessage) message;
    String kind =  msg.getMessage();
    DatastoreService datastore = getBusiness().getSystemService()
              .getDatastore();
        Query query = new Query(kind);
        PreparedQuery results = datastore.prepare(query);
        int i = 0;
        boolean end = true;
        for (Entity entity : results.asIterable()) {
          datastore.delete(entity.getKey());
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.