Package com.google.appengine.api.datastore

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


    return result;
  }

  @Override
  public void removeByPage(String url) {
    Query q = newQuery();
    q.addFilter("pageUrl", EQUAL, url);
    removeSelected(q);
  }
View Full Code Here


    removeSelected(q);
  }

  @Override
  public List<CommentEntity> getRecent(int limit) {
    Query q = newQuery();
    List<CommentEntity> result = select(q, "getRecent", limit, null);
    Collections.sort(result, new CommentHelper.PublishDateDesc());
    return result;
  }
View Full Code Here

    super(FolderPermissionEntity.class);
  }

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

  }

  @Override
  public FolderPermissionEntity getByFolderGroup(final Long folderId,
      final Long groupId) {
    Query q = newQuery();
    q.addFilter("folderId", EQUAL, folderId);
    q.addFilter("groupId", EQUAL, groupId);
    return selectOne(q, "getByFolderGroup", params(folderId, groupId));
  }
View Full Code Here

    q.addFilter("groupId", EQUAL, groupId);
    return selectOne(q, "getByFolderGroup", params(folderId, groupId));
  }

  private List<FolderPermissionEntity> selectByGroup(final Long groupId) {
    Query q = newQuery();
    q.addFilter("groupId", EQUAL, groupId);
    return select(q, "selectByGroup", params(groupId));
  }
View Full Code Here

    super(FieldEntity.class);
  }

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

    return result;
  }
 
  @Override
  public FieldEntity getByName(final FormEntity form, final String name) {
    Query q = newQuery();
    q.addFilter("formId", EQUAL, form.getId());
    q.addFilter("name", EQUAL, name);
    return selectOne(q, "getByName", params(form.getId(), name));
  }
View Full Code Here

    super(StructureTemplateEntity.class);
  }

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

    return select(q, "selectByStructure", params(structureId));
  }

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

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

  @Override
  public StructureTemplateEntity getByTitle(String title) {
    Query q = newQuery();
    q.addFilter("title", FilterOperator.EQUAL, title);
    return selectOne(q, "getByTitle", params(title));
  }
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.