Package com.google.appengine.api.datastore

Examples of com.google.appengine.api.datastore.PropertyContainer


        throw new IllegalStateException("Class '" + pojo.getClass() + "' is not a registered @Subclass");
      else
        return translator.save(pojo, index, ctx, path);
    } else {
      // This is a normal save
      PropertyContainer into = creator.save(pojo, index, ctx, path);

      populator.save(pojo, index, ctx, path, into);

      if (discriminator != null) {
        into.setUnindexedProperty(DISCRIMINATOR_PROPERTY, discriminator);

        if (!indexedDiscriminators.isEmpty())
          into.setProperty(DISCRIMINATOR_INDEX_PROPERTY, indexedDiscriminators);
      }

      return into;
    }
  }
View Full Code Here


     * @throws InterruptedException
     */
  public static Object get(Future<Object> future, String name) throws InterruptedException, ExecutionException {
      Object val = future.get();
        if (val instanceof PropertyContainer) {
            PropertyContainer pc = (PropertyContainer) val;
            return pc.getProperty(name);
        }
        if (val instanceof GroovyObject) {
            GroovyObject go = (GroovyObject) val;
            return go.getProperty(name);
        }
View Full Code Here

     * @throws InterruptedException
     */
    public static void set(Future<Object> future, String name, Object value) throws InterruptedException, ExecutionException {
        Object val = future.get();
        if (val instanceof PropertyContainer) {
            PropertyContainer pc = (PropertyContainer) val;
            pc.setProperty(name, DatastoreExtensions.transformValueForStorage(value));
            return;
        }
        if (val instanceof GroovyObject) {
            GroovyObject go = (GroovyObject) val;
            go.setProperty(name, DatastoreExtensions.transformValueForStorage(value));
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.PropertyContainer

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.