Example #1
0
 @SuppressWarnings("unchecked")
 private Model getSiteletEntity(SiteletProperties siteletProperties)
     throws ClassNotFoundException {
   Model m =
       Model.all((Class<? extends Model>) Class.forName(siteletProperties.entityTypeClassName))
           .filter("id", siteletProperties.entityId)
           .get();
   return m;
 }
Example #2
0
 static Query<EventVote> all() {
   return Model.all(EventVote.class);
 }
 public static Query<Question> all() {
   return Model.all(Question.class);
 }
Example #4
0
 private static Query<QuizModel> all() {
   return Model.all(QuizModel.class);
 }