Package com.google.appengine.datanucleus.test.jdo.BidirectionalSuperclassTableChildSetJDO

Examples of com.google.appengine.datanucleus.test.jdo.BidirectionalSuperclassTableChildSetJDO.BidirBottom


   
    testInsert_NewParentAndChild(new HasOneToManySet(), new BidirTop(), startEnd, UnidirLevel.Bottom,
  expectedBidirKind, expectedUnidirKind, 1, 1);
    testInsert_NewParentAndChild(new HasOneToManySet(), new BidirMiddle(), startEnd, UnidirLevel.Top,
  expectedBidirKind, expectedUnidirKind, 2, 2);
    testInsert_NewParentAndChild(new HasOneToManySet(), new BidirBottom(), startEnd, UnidirLevel.Middle,
  expectedBidirKind, expectedUnidirKind, 3, 3);
  }
View Full Code Here


  }
  private void testInsertExistingParentNewChild(StartEnd startEnd) throws EntityNotFoundException {
    String expectedBidirKind = getEntityKind(BidirTop.class);
    String expectedUnidirKind  = getEntityKind(UnidirTop.class);

    testInsert_ExistingParentNewChild(new HasOneToManySet(), new BidirBottom(), startEnd, UnidirLevel.Middle,
  expectedBidirKind, expectedUnidirKind, 1, 1);
    testInsert_ExistingParentNewChild(new HasOneToManySet(), new BidirTop(), startEnd, UnidirLevel.Bottom,
  expectedBidirKind, expectedUnidirKind, 2, 2);
    testInsert_ExistingParentNewChild(new HasOneToManySet(), new BidirMiddle(), startEnd, UnidirLevel.Top,
  expectedBidirKind, expectedUnidirKind, 3, 3);
View Full Code Here

    testUpdate_UpdateChildWithMerge(new HasOneToManySet(), new BidirTop(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Bottom, 1);
    testUpdate_UpdateChildWithMerge(new HasOneToManySet(), new BidirMiddle(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Top, 2);
    testUpdate_UpdateChildWithMerge(new HasOneToManySet(), new BidirBottom(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Middle, 3);
  }
View Full Code Here

    String expectedUnidirKind  = getEntityKind(UnidirTop.class);
    testUpdate_UpdateChild(new HasOneToManySet(), new BidirTop(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Middle, 1);
    testUpdate_UpdateChild(new HasOneToManySet(), new BidirMiddle(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Top, 2);
    testUpdate_UpdateChild(new HasOneToManySet(), new BidirBottom(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Bottom, 3);
  }
View Full Code Here

    switchDatasource(PersistenceManagerFactoryName.nontransactional);
    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testUpdateNullOutChildren(NEW_PM_DETACH_ON_CLOSE_START_END);
  }
  private void testUpdateNullOutChildren(StartEnd startEnd) throws EntityNotFoundException {
    testUpdate_NullOutChildren(new HasOneToManySet(), new BidirBottom(), startEnd,
  UnidirLevel.Bottom, 1);
    testUpdate_NullOutChildren(new HasOneToManySet(), new BidirMiddle(), startEnd,
  UnidirLevel.Middle, 2);
    testUpdate_NullOutChildren(new HasOneToManySet(), new BidirTop(), startEnd,
  UnidirLevel.Top, 3);
View Full Code Here

    testUpdateClearOutChildren(NEW_PM_DETACH_ON_CLOSE_START_END);
  }
  private void testUpdateClearOutChildren(StartEnd startEnd) throws EntityNotFoundException {
    testUpdate_ClearOutChildren(new HasOneToManySet(), new BidirTop(), startEnd,
  UnidirLevel.Bottom, 1);
    testUpdate_ClearOutChildren(new HasOneToManySet(), new BidirBottom(), startEnd,
  UnidirLevel.Middle, 2);
    testUpdate_ClearOutChildren(new HasOneToManySet(), new BidirMiddle(), startEnd,
  UnidirLevel.Top, 3);
  }
View Full Code Here

    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testRemoveAll(NEW_PM_START_END);
  }
  private void testRemoveAll(StartEnd startEnd) throws EntityNotFoundException {
    testRemoveAll(new HasOneToManySet(), new BidirTop(),
                  new BidirMiddle(), new BidirBottom(), startEnd);
  }
View Full Code Here

  private void testAddQueriedParentToBidirChild(StartEnd startEnd) throws EntityNotFoundException {
    testAddQueriedParentToBidirChild(new HasOneToManySet(), new BidirMiddle(), startEnd,
    getEntityKind(BidirTop.class));
    testAddQueriedParentToBidirChild(new HasOneToManySet(), new BidirTop(), startEnd,
    getEntityKind(BidirTop.class));
    testAddQueriedParentToBidirChild(new HasOneToManySet(), new BidirBottom(), startEnd,
    getEntityKind(BidirTop.class));
  }
View Full Code Here

  private void testAddFetchedParentToBidirChild(StartEnd startEnd) throws EntityNotFoundException {
    testAddFetchedParentToBidirChild(new HasOneToManySet(), new BidirTop(), startEnd,
  getEntityKind(BidirTop.class));
    testAddFetchedParentToBidirChild(new HasOneToManySet(), new BidirMiddle(), startEnd,
  getEntityKind(BidirTop.class));
    testAddFetchedParentToBidirChild(new HasOneToManySet(), new BidirBottom(), startEnd,
  getEntityKind(BidirTop.class));
  }
View Full Code Here

    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testReplaceBidirColl(NEW_PM_START_END);
  }
  private void testReplaceBidirColl(StartEnd startEnd) {
    Collection<BidirTop> childList = Utils.<BidirTop>newHashSet(
        new BidirMiddle(), new BidirBottom());
    testReplaceBidirColl(new HasOneToManySet(), new BidirTop(),
  childList, startEnd);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.BidirectionalSuperclassTableChildSetJDO.BidirBottom

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.