Package com.googlecode.objectify

Examples of com.googlecode.objectify.Objectify


    }
    return null;
  }

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


import com.googlecode.objectify.Query;

public class RecentChangeService {

  public static RecentChangeEntity save(RecentChangeEntity version) {
    Objectify ofy = OS.begin();
    ofy.put(version);
    return version;
  }
View Full Code Here

    ofy.put(version);
    return version;
  }

  public static void delete(RecentChangeEntity version) {
    Objectify ofy = OS.begin();
    ofy.delete(version);
  }
View Full Code Here

  public static RecentChangeEntity findById(Long versionId) {
    if (versionId == null) {
      return null;
    }
    Objectify ofy = OS.begin();
    return ofy.find(RecentChangeEntity.class, versionId);
  }
View Full Code Here

    Objectify ofy = OS.begin();
    return ofy.find(RecentChangeEntity.class, versionId);
  }

  public static QueryResultIterable<RecentChangeEntity> findByTopic(Topic topic) {
    Objectify ofy = OS.begin();
    Query<RecentChangeEntity> q = ofy.query(RecentChangeEntity.class);
    q.filter("topicId", new Key<Topic>(Topic.class, topic.getName()));
    return q;
  }
View Full Code Here

    q.filter("topicId", new Key<Topic>(Topic.class, topic.getName()));
    return q;
  }

  public static QueryResultIterable<RecentChangeEntity> findRecentChanges(Pagination pagination, boolean descending) {
    Objectify ofy = OS.begin();
    Query<RecentChangeEntity> q = ofy.query(RecentChangeEntity.class);
    return q;
  }
View Full Code Here

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

import com.googlecode.objectify.Query;

public class GroupMemberService {

  public static GroupMemberEntity save(GroupMemberEntity page) {
    Objectify ofy = OS.begin();
    ofy.put(page);
    return page;
  }
View Full Code Here

    ofy.put(page);
    return page;
  }

  public static void delete(GroupMemberEntity role) {
    Objectify ofy = OS.begin();
    ofy.delete(role);
  }
View Full Code Here

  }

  public static QueryResultIterable<GroupMemberEntity> findByName(String name) {
    // GroupMemberEntity role = null;
    try {
      Objectify ofy = OS.begin();
      // OQuery<GroupMemberEntity> q = OS.createQuery(GroupMemberEntity.class);
      Query<GroupMemberEntity> q = ofy.query(GroupMemberEntity.class);
      q.filter("username", name);
      // role = ofy.prepare(q).asSingle();
      return q;
    } catch (NullPointerException npe) {
    }
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.Objectify

Copyright © 2018 www.massapicom. 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.