コード例 #1
0
 public static Vector<Long> ReadFeedList(String email) {
   Vector<Long> outputList = new Vector<Long>();
   Query<FeedParameters> query =
       objectify.query(FeedParameters.class).filter("emailAddress", email);
   for (Key<FeedParameters> feedKey : query.fetchKeys()) {
     outputList.add(feedKey.getId());
   }
   return outputList;
 }
コード例 #2
0
  public static List<Long> getFeedsForUpdate() {
    Vector<Long> outputList = new Vector<Long>();
    Query<FeedParameters> query =
        objectify
            .query(FeedParameters.class)
            .filter("inPostingQueue", true)
            .filter("postingTime <", new Date());

    for (Key<FeedParameters> feedKey : query.fetchKeys()) {
      outputList.add(feedKey.getId());
    }
    return outputList;
  }