Package com.googlecode.objectify

Examples of com.googlecode.objectify.Objectify.query()


    return q;
  }

  public static QueryResultIterable<RecentChangeEntity> findRecentChanges(Pagination pagination, boolean descending) {
    Objectify ofy = OS.begin();
    Query<RecentChangeEntity> q = ofy.query(RecentChangeEntity.class);
    return q;
  }
 
  public static QueryResultIterable<RecentChangeEntity> getAll() {
    Objectify ofy = OS.begin();
View Full Code Here


    return q;
  }
 
  public static QueryResultIterable<RecentChangeEntity> getAll() {
    Objectify ofy = OS.begin();
    Query<RecentChangeEntity> q = ofy.query(RecentChangeEntity.class);
    return q;
  }

}
View Full Code Here

  public static QueryResultIterable<GroupMemberEntity> findByName(String name) {
    // GroupMemberEntity role = null;
    try {
      Objectify ofy = OS.begin();
      // OQuery<GroupMemberEntity> q = OS.createQuery(GroupMemberEntity.class);
      Query<GroupMemberEntity> q = ofy.query(GroupMemberEntity.class);
      q.filter("username", name);
      // role = ofy.prepare(q).asSingle();
      return q;
    } catch (NullPointerException npe) {
    }
View Full Code Here

  public static QueryResultIterable<GroupMemberEntity> getAll() {
    List<GroupMemberEntity> resultList = null;
    Objectify ofy = OS.begin();
    // OQuery<GroupMemberEntity> q = OS.createQuery(GroupMemberEntity.class);
    Query<GroupMemberEntity> q = ofy.query(GroupMemberEntity.class);
    // resultList = ofy.prepare(q).asList();
    return q;
  }

}
View Full Code Here

  }

  public static QueryResultIterable<TopicVersion> findByTopic(Topic topic) {
    Objectify ofy = OS.begin();
    // OQuery<TopicVersion> q = OS.createQuery(TopicVersion.class);
    Query<TopicVersion> q = ofy.query(TopicVersion.class);
    q.filter("topicId", new Key<Topic>(Topic.class, topic.getName()));
    // return ofy.prepare(q).asList();
    return q;
  }
View Full Code Here

    return q;
  }

  public static QueryResultIterable<TopicVersion> getAll() {
    Objectify ofy = OS.begin();
    Query<TopicVersion> q = ofy.query(TopicVersion.class);
    return q;
  }

}
View Full Code Here

    return null;
  }

  public static QueryResultIterable<PropertyEntity> getAll() {
    Objectify ofy = OS.begin();
    Query<PropertyEntity> q = ofy.query(PropertyEntity.class);
    return q;
  }

  public static void saveAll(Properties properties) {
    PropertyEntity page;
View Full Code Here

    return ofy.find(LogItem.class, versionId);
  }

  public static QueryResultIterable<LogItem> findByTopic(Topic topic) {
    Objectify ofy = OS.begin();
    Query<LogItem> q = ofy.query(LogItem.class);
    q.filter("topicId", new Key<Topic>(Topic.class, topic.getName()));
    return q;
  }

  // public static QueryResultIterable<LogItem> getAll(Pagination pagination) {
View Full Code Here

  // }

  public static QueryResultIterable<LogItem> getAll(String virtualWiki, int logType,
      Pagination pagination, boolean descending) {
    Objectify ofy = OS.begin();
    Query<LogItem> q = ofy.query(LogItem.class);
    return q;
  }

}
View Full Code Here

      Iterable<Entity> namespaceEntities =
        DatastoreServiceFactory.getAsyncDatastoreService().prepare(new Query(StatConstants.STAT_NAMESPACE)).asIterable();
   
    Objectify ofy  = ObjectifyService.begin();

      Iterable<Total> totals = ofy.query(Total.class).fetch()// total stat query
     
      // use HashMap here because Guava's map implementations don't support empty string
      Map<String, Iterable<NSKind>> nsKindsMap = new HashMap<String, Iterable<NSKind>>();
      Map<String, Iterable<NSKindIsRootEntity>> nsRootKindsMap = new HashMap<String, Iterable<NSKindIsRootEntity>>();
      Map<String, Iterable<NSKindNonRootEntity>> nsNonRootKindsMap = new HashMap<String, Iterable<NSKindNonRootEntity>>();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.