Package com.google.appengine.api.datastore

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


    super(ContentPermissionEntity.class);
  }

  @Override
  public List<ContentPermissionEntity> selectByUrl(final String url) {
    Query q = newQuery();
    q.addFilter("url", EQUAL, url);
    return select(q, "selectByUrl", params(url));
  }
View Full Code Here


  }

  @Override
  public ContentPermissionEntity getByUrlGroup(final String url,
      final Long groupId) {
    Query q = newQuery();
    q.addFilter("url", EQUAL, url);
    q.addFilter("groupId", EQUAL, groupId);
    return selectOne(q, "getByUrlGroup", params(url, groupId));
  }
View Full Code Here

    q.addFilter("groupId", EQUAL, groupId);
    return selectOne(q, "getByUrlGroup", params(url, groupId));
  }

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

      super.remove(id);
    }
  }

  public List<PageEntity> selectAllChildren(final String parentUrl) {
    Query q = newQuery();
    q.addFilter("parentUrl", FilterOperator.EQUAL, parentUrl);
    return select(q, "selectAllChildren", params(parentUrl));
  }
View Full Code Here

    return select(q, "selectAllChildren", params(parentUrl));
  }
 
  public List<PageEntity> selectAllChildren(final String parentUrl,
      Date startDate, Date endDate) {
    Query q = newQuery();
    q.addFilter("parentUrl", FilterOperator.EQUAL, parentUrl);
    q.addFilter("publishDate", FilterOperator.GREATER_THAN_OR_EQUAL,
        startDate);
    q.addFilter("publishDate", FilterOperator.LESS_THAN, endDate);
    return select(q, "selectAllChildrenDate", params(parentUrl, startDate,
        endDate));
  }
View Full Code Here

    return result;
  }
 
  @Override
  public List<PageEntity> selectByUrl(final String url) {
    Query q = newQuery();
    q.addFilter("friendlyURL", FilterOperator.EQUAL, url);
    List<PageEntity> result = select(q, "selectByUrl", params(url));
    Collections.sort(result, PageHelper.VERSION_ASC);
    return result;
  }
View Full Code Here

    return result;
  }
 
  @Override
  public PageEntity getByUrlVersion(final String url, final Integer version) {
    Query q = newQuery();
    q.addFilter("friendlyURL", FilterOperator.EQUAL, url);
    q.addFilter("version", FilterOperator.EQUAL, version);
    return selectOne(q, "getByUrlVersion", params(url, version));
  }
View Full Code Here

    return result;
  }

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

    return select(q, "selectByTemplate", params(templateId));
  }

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

  }

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

TOP

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

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.