Package com.google.code.gaeom

Examples of com.google.code.gaeom.ObjectStore


    A a = new A();

    a.name = "Fred";
    a.b.name = "Flintstone";

    ObjectStore os = ObjectStore.Factory.create();
    ObjectStoreSession oss = os.beginSession();

    Key key = oss.store(a).now();
    oss.delete(a.b).now();

    ObjectStoreSession oss2 = os.beginSession();

    oss2.load(key).retries(1).now();
    assertTrue(false);
  }
View Full Code Here


    family.addHead(new Person("Kim"));
    family.addChild(new Person("Sam"));
    family.addChild(new Person("Maggie"));
    family.addChild(new Person("Katy"));

    ObjectStore os = ObjectStore.Factory.create();
    ObjectStoreSession oss = os.beginSession();

    Key key = oss.store(family).now();

    ObjectStoreSession oss2 = os.beginSession();

    Family family2 = (Family) oss2.load(key).now();

    assertEquals(family.name, family2.name);
    assertEquals(family.heads.size(), family2.heads.size());
View Full Code Here

TOP

Related Classes of com.google.code.gaeom.ObjectStore

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.