Package com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirBottomSet


    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


    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

  }
  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

  }
  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

  }
  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

  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

    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

  private void testAddQueriedParentToBidirChild(StartEnd startEnd) throws Exception {
    testAddQueriedParentToBidirChild(new HasOneToManySetJPA(), new BidirMiddleSet(),
  startEnd);
    testAddQueriedParentToBidirChild(new HasOneToManySetJPA(), new BidirTopSet(),
  startEnd);
    testAddQueriedParentToBidirChild(new HasOneToManySetJPA(), new BidirBottomSet(),
  startEnd);
  }
View Full Code Here

 
  public void testAddFetchedParentToBidirChild_NoTxn() throws Exception {
    testAddFetchedParentToBidirChild(NEW_EM_START_END);
  }
  public void testAddFetchedParentToBidirChild(StartEnd startEnd) throws Exception {
    testAddFetchedParentToBidirChild(new HasOneToManySetJPA(), new BidirBottomSet(),
  startEnd);
    testAddFetchedParentToBidirChild(new HasOneToManySetJPA(), new BidirTopSet(),
  startEnd);
    testAddFetchedParentToBidirChild(new HasOneToManySetJPA(), new BidirMiddleSet(),
  startEnd);
View Full Code Here

  private void testOnlyOneParentPutOnParentAndChildUpdate(StartEnd startEnd) throws Throwable {
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManySetJPA(), new BidirTopSet(),
        startEnd);
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManySetJPA(), new BidirMiddleSet(),
        startEnd);
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManySetJPA(), new BidirBottomSet(),
        startEnd);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirBottomSet

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.