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; }
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; }