Examples of HasOneToManySetJPA


Examples of com.google.appengine.datanucleus.test.jpa.HasOneToManySetJPA

  }

  public void testOnlyOneParentPutOnChildDelete_NoTxn() throws Throwable {
    // updates aren't necessarily atomic when non-tx, so get 1 after each collection clear.
    int expectedUpdatePuts = 5;
    testOnlyOneParentPutOnChildDelete(new HasOneToManySetJPA(), new BidirectionalChildSetJPA(),
                                     NEW_EM_START_END, expectedUpdatePuts);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

  }
  public void testInsert_NewParentAndChild_NoTxn() throws Exception {
    testInsert_NewParentAndChild(NEW_EM_START_END);
  }
  private void testInsert_NewParentAndChild(StartEnd startEnd) throws Exception {
    testInsert_NewParentAndChild(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 1, 1);
    testInsert_NewParentAndChild(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 2, 2);
    testInsert_NewParentAndChild(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

  }
  public void testInsert_ExistingParentNewChild_NoTxn() throws Exception {
    testInsert_ExistingParentNewChild(NEW_EM_START_END);
  }
  private void testInsert_ExistingParentNewChild(StartEnd startEnd) throws Exception {
    testInsert_ExistingParentNewChild(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 1, 1);
    testInsert_ExistingParentNewChild(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 2, 2);
    testInsert_ExistingParentNewChild(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

  }
  public void testUpdate_UpdateChildWithMerge_NoTxn() throws Exception {
    testUpdate_UpdateChildWithMerge(NEW_EM_START_END);
  }
  private void testUpdate_UpdateChildWithMerge(StartEnd startEnd) throws Exception {
    testUpdate_UpdateChildWithMerge(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 1, 1);
    testUpdate_UpdateChildWithMerge(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 2, 2);
    testUpdate_UpdateChildWithMerge(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

  }
  public void testUpdate_UpdateChild_NoTxn() throws Exception {
    testUpdate_UpdateChild(NEW_EM_START_END);
  }
  private void testUpdate_UpdateChild(StartEnd startEnd) throws Exception {
    testUpdate_UpdateChild(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 1, 1);
    testUpdate_UpdateChild(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 2, 2);
    testUpdate_UpdateChild(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

  }
  public void testUpdate_NullOutChildren_NoTxn() throws Exception {
    testUpdate_NullOutChildren(NEW_EM_START_END);
  }
  private void testUpdate_NullOutChildren(StartEnd startEnd) throws Exception {
    testUpdate_NullOutChildren(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 1);
    testUpdate_NullOutChildren(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 2);
    testUpdate_NullOutChildren(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

  }
  public void testUpdate_ClearOutChildren_NoTxn() throws Exception {
    testUpdate_ClearOutChildren(NEW_EM_START_END);
  }
  private void testUpdate_ClearOutChildren(StartEnd startEnd) throws Exception {
    testUpdate_ClearOutChildren(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 1);
    testUpdate_ClearOutChildren(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 2);
    testUpdate_ClearOutChildren(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

  }
  public void testRemoveObject_NoTxn() throws Exception {
    testRemoveObject(NEW_EM_START_END);
  }
  private void testRemoveObject(StartEnd startEnd) throws Exception {
    testRemoveObject(new HasOneToManySetJPA(), new BidirTopSet(nextNamedKey()),
        new BidirTopSet(nextNamedKey()), startEnd, UnidirLevel.Top, UnidirLevel.Bottom, 1);
    testRemoveObject(new HasOneToManySetJPA(), new BidirBottomSet(nextNamedKey()),
        new BidirTopSet(nextNamedKey()), startEnd, UnidirLevel.Middle, UnidirLevel.Top, 2);
    testRemoveObject(new HasOneToManySetJPA(), new BidirMiddleSet(nextNamedKey()),
        new BidirTopSet(nextNamedKey()), startEnd, UnidirLevel.Bottom, UnidirLevel.Middle, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

    testRemoveObject(new HasOneToManySetJPA(), new BidirMiddleSet(nextNamedKey()),
        new BidirTopSet(nextNamedKey()), startEnd, UnidirLevel.Bottom, UnidirLevel.Middle, 3);
  }

  public void testChangeParent() throws Exception {
    testChangeParent(new HasOneToManySetJPA(), new HasOneToManySetJPA(), TXN_START_END);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

  public void testChangeParent() throws Exception {
    testChangeParent(new HasOneToManySetJPA(), new HasOneToManySetJPA(), TXN_START_END);
  }
  public void testChangeParent_NoTxn() throws Exception {
    testChangeParent(new HasOneToManySetJPA(), new HasOneToManySetJPA(), NEW_EM_START_END);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.