Package info.bliki.gae.model

Examples of info.bliki.gae.model.PropertyEntity


    Query<PropertyEntity> q = ofy.query(PropertyEntity.class);
    return q;
  }

  public static void saveAll(Properties properties) {
    PropertyEntity page;
    Objectify ofy = OS.begin();

    Enumeration<Object> keyEnum = properties.keys();
    while (keyEnum.hasMoreElements()) {
      String key = (String) keyEnum.nextElement();
      String value = (String) properties.get(key.toString());
      if (value != null) {
        page = new PropertyEntity(key, value);
        ofy.put(page);
      }
    }
  }
View Full Code Here


    return keys.elements();
  }

  @Override
  public synchronized Object setProperty(String key, String value) {
    PropertyEntity pe = new PropertyEntity(key, value);
    PropertyService.save(pe);
    return super.put(key, value);
  }
View Full Code Here

TOP

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

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.