Package com.googlecode.objectify

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


    }
   
    protected List<String> getHangmanQuestionCountList()
    {
        Objectify tObjectify = ObjectifyService.begin();
        QueryResultIterator<HangmanQuestion> tQueryResultIterable = tObjectify.query( HangmanQuestion.class ).fetch().iterator();
       
        List<String> tCountSentenceString = new ArrayList<String>();
        while (tQueryResultIterable.hasNext())
        {
            HangmanQuestion tQuestion = tQueryResultIterable.next();
View Full Code Here


    public List<PlurkPlayerDailyPoint> getTopNScorer(int pTopN)
    {
       
       
        Objectify tObjectify = ObjectifyService.begin();
        QueryResultIterable<PlurkPlayerDailyPoint> tRetIter = tObjectify.query( PlurkPlayerDailyPoint.class ).filter( "DATE", Long.parseLong( new SimpleDateFormat( "yyyyMMdd" ).format( Calendar.getInstance( TimeZone.getTimeZone( "UTC" ) ).getTime() ) ) ).order( "-POINT" ).limit( pTopN ).fetch();
       
        return Lists.newArrayList( tRetIter );
    }
}
View Full Code Here

    }
   
    public List<ScramblePlurkAnswerers> getTopNScorer(int pTopN)
    {
        Objectify tObjectify = ObjectifyService.begin();
        QueryResultIterable<ScramblePlurkAnswerers> tRetIter = tObjectify.query( ScramblePlurkAnswerers.class ).order( "-NUMBER_OF_CORRECT_ANSWERS" ).limit( pTopN ).fetch();
       
        return Lists.newArrayList( tRetIter );
    }
}
View Full Code Here

            throws ServletException, IOException {
     
      String websiteComponentIdentifier = req.getParameter("id");
      //listing the table
      Objectify ofy = PMF.getObjectify();
      com.googlecode.objectify.Query<Image> q = ofy.query(Image.class).filter("webComponentIdentifier",websiteComponentIdentifier);
      q.order("order");
      // return to client
    res.setContentType("application/json");
    res.setCharacterEncoding("utf-8");
    res.getWriter().write((new Gson().toJson(q.list())));
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.