Package com.google.appengine.api.datastore

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


  }

  @Override
  public List<ContentEntity> select(final String parentClass,
      final Long parentKey) {
    Query q = newQuery();
    q.addFilter("parentClass", FilterOperator.EQUAL, parentClass);
    q.addFilter("parentKey", FilterOperator.EQUAL, parentKey);
    return select(q, "select", params(parentClass, parentKey));
  }
View Full Code Here


  }
 
  @Override
  public ContentEntity getByLanguage(final String parentClass,
      final Long parentKey, final String language) {
    Query q = newQuery();
    q.addFilter("parentClass", FilterOperator.EQUAL, parentClass);
    q.addFilter("parentKey", FilterOperator.EQUAL, parentKey);
    q.addFilter("languageCode", FilterOperator.EQUAL, language);
    return selectOne(q, "getByLanguage", params(parentClass, parentKey,
        language));
  }
View Full Code Here

        language));
  }

  @Override
  public void removeById(String className, Long id) {
    Query q = newQuery();
    q.addFilter("parentClass", FilterOperator.EQUAL, className);
    q.addFilter("parentKey", FilterOperator.EQUAL, id);
    removeSelected(q);
  }
View Full Code Here

  public LanguageDaoImpl() {
    super(LanguageEntity.class);
  }

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

    super(MessageEntity.class);
  }

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

  }
 
  @Override
  public MessageEntity getByCode(final String code,
      final String languageCode) {
    Query q = newQuery();
    q.addFilter("code", FilterOperator.EQUAL, code);
    q.addFilter("languageCode", FilterOperator.EQUAL, languageCode);
    return selectOne(q, "getByCode", params(code, languageCode));
  }
View Full Code Here

    return selectOne(q, "getByCode", params(code, languageCode));
  }

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

    super(CommentEntity.class);
  }

  @Override
  public List<CommentEntity> getByPage(final String pageUrl) {
    Query q = newQuery();
    q.addFilter("pageUrl", EQUAL, pageUrl);
    List<CommentEntity> result = select(q, "getByPage", params(pageUrl));
    Collections.sort(result, new CommentHelper.PublishDateDesc());
    return result;
  }
View Full Code Here

    }
  }

  @Override
  public List<CommentEntity> getByPage(String pageUrl, boolean disabled) {
    Query q = newQuery();
    q.addFilter("pageUrl", EQUAL, pageUrl);
    q.addFilter("disabled", EQUAL, disabled);
    List<CommentEntity> result = select(q, "getByPage", params(pageUrl,
        disabled));
    Collections.sort(result, new CommentHelper.PublishDateDesc());
    return result;
  }
View Full Code Here

    return result;
  }

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

TOP

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

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.