Package com.googlecode.objectify

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


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

  // Topic save(Topic page);
View Full Code Here


    return ofy.find(WikiUserDetails.class, username);
  }

  public static QueryResultIterable<WikiUserDetails> getAll() {
    Objectify ofy = OS.begin();
    Query<WikiUserDetails> q = ofy.query(WikiUserDetails.class);
    return q;
  }
}
View Full Code Here

    UserAuthorityEntity role;
    try {
      Objectify ofy = OS.begin();
      // OQuery<UserAuthorityEntity> q =
      // OS.createQuery(UserAuthorityEntity.class);
      Query<UserAuthorityEntity> q = ofy.query(UserAuthorityEntity.class);
      q.filter("username", username);
      ofy.delete(q);
      // Iterable<UserAuthorityEntity> it = ofy.prepare(q).asIterable();
      // for (UserAuthorityEntity groupAuthorityEntity : it) {
      // ofy.delete(groupAuthorityEntity);
View Full Code Here

    }
  }

  public static QueryResultIterable<UserAuthorityEntity> getAll() {
    Objectify ofy = OS.begin();
    Query<UserAuthorityEntity> q = ofy.query(UserAuthorityEntity.class);
    return q;
  }
}
View Full Code Here

      return role;
    }
    try {
      Objectify ofy = OS.begin();
      // OQuery<WikiGroup> q = OS.createQuery(WikiGroup.class);
      Query<WikiGroup> q = ofy.query(WikiGroup.class);
      q.filter("name", name);
      // role = ofy.prepare(q).asSingle();
      role = q.get();
      cache.put(role.getName(), role);
      return role;
View Full Code Here

    return null;
  }

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

}
View Full Code Here

      return role;
    }
    try {
      Objectify ofy = OS.begin();
      // OQuery<VirtualWiki> q = OS.createQuery(VirtualWiki.class);
      Query<VirtualWiki> q = ofy.query(VirtualWiki.class);
      q.filter("title", name);
      // role = ofy.prepare(q).asSingle();
      // cache.put(role.getName(), role);
      return q.get();
    } catch (NullPointerException npe) {
View Full Code Here

    return null;
  }

  public static QueryResultIterable<VirtualWiki> getAll() {
    Objectify ofy = OS.begin();
    Query<VirtualWiki> q = ofy.query(VirtualWiki.class);
    return q;
  }
}
View Full Code Here

    return null;
  }

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

}
View Full Code Here

    // GroupAuthorityEntity role;
    try {
      Objectify ofy = OS.begin();
      // OQuery<GroupAuthorityEntity> q = OS
      // .createQuery(GroupAuthorityEntity.class);
      Query<GroupAuthorityEntity> q = ofy.query(GroupAuthorityEntity.class);
      q.filter("groupId", groupId);
      // Iterable<GroupAuthorityEntity> it = ofy.prepare(q).asIterable();
      ofy.delete(q);
      // for (GroupAuthorityEntity groupAuthorityEntity : q) {
      // ofy.delete(groupAuthorityEntity);
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.