Package com.googlecode.objectify.impl.translate

Examples of com.googlecode.objectify.impl.translate.LoadContext


  /** */
  public ProjectionIterator(QueryResultIterator<Entity> base, LoadEngine loadEngine) {
    super(base);
    this.loadEngine = loadEngine;
    this.ctx = new LoadContext(loadEngine);
  }
View Full Code Here


   * @see com.googlecode.objectify.Objectify#toPojo(com.google.appengine.api.datastore.Entity)
   */
  @Override
  public <T> T fromEntity(Entity entity) {
    LoadEngine engine = createLoadEngine();
    return engine.load(entity, new LoadContext(engine));
  }
View Full Code Here

      /** */
      @Override
      public Map<Key<?>, Object> nowUncached() {
        Map<Key<?>, Object> result = new HashMap<>(raw.now().size() * 2);

        ctx = new LoadContext(LoadEngine.this);

        for (Entity ent: raw.now().values()) {
          Key<?> key = Key.create(ent.getKey());
          Object entity = load(ent, ctx);
          result.put(key, entity);
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.impl.translate.LoadContext

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.