Package info.bliki.gae.model

Examples of info.bliki.gae.model.UserEntity


    ofy.put(page);
    return page;
  }

  public static UserEntity update(UserEntity role) {
    UserEntity existingEntity = null;
    try {
      Objectify ofy = OS.begin();
      existingEntity = ofy.get(UserEntity.class, role.getUsername());
      existingEntity.setPassword(role.getPassword());
      ofy.put(existingEntity);
    } catch (EntityNotFoundException enf) {
    }
    return existingEntity;
  }
View Full Code Here


    return q.countAll() > 0;
    // return ofy.prepare(q).asSingle() != null;
  }

  public static UserEntity findByName(String name) {
    UserEntity role = null;
    try {
      Objectify ofy = OS.begin();
      // OQuery<UserEntity> q = OS.createQuery(UserEntity.class);
      Query<WikiUser> q = ofy.query(WikiUser.class);
      return ofy.get(UserEntity.class, name);
View Full Code Here

TOP

Related Classes of info.bliki.gae.model.UserEntity

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.