Examples of BidirBottom


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

    testUpdateNullOutChildren(NEW_PM_DETACH_ON_CLOSE_START_END);
  }
  private void testUpdateNullOutChildren(StartEnd startEnd) throws EntityNotFoundException {
    int count = 1;

    testUpdate_NullOutChildren(new HasOneToManyList(), new BidirBottom(), startEnd,
  UnidirLevel.Bottom, count++);
    testUpdate_NullOutChildren(new HasOneToManyList(), new BidirMiddle(), startEnd,
  UnidirLevel.Middle, count++);
    testUpdate_NullOutChildren(new HasOneToManyList(), new BidirTop(), startEnd,
  UnidirLevel.Top, count++);
View Full Code Here

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

  private void testUpdateClearOutChildren(StartEnd startEnd) throws EntityNotFoundException {
    int count = 1;

    testUpdate_ClearOutChildren(new HasOneToManyList(), new BidirTop(), startEnd,
  UnidirLevel.Bottom, count++);
    testUpdate_ClearOutChildren(new HasOneToManyList(), new BidirBottom(), startEnd,
  UnidirLevel.Middle, count++);
    testUpdate_ClearOutChildren(new HasOneToManyList(), new BidirMiddle(), startEnd,
  UnidirLevel.Top, count++);
  }
View Full Code Here

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

    testIndexOf(NEW_PM_START_END);
  }
  public void testIndexOf(StartEnd startEnd) throws Exception {
    HasOneToManyList pojo = new HasOneToManyList();
    BidirTop bidir1 = new BidirMiddle();
    BidirTop bidir2 = new BidirBottom();
    BidirTop bidir3 = new BidirTop();

    UnidirTop unidir1 = newUnidir(UnidirLevel.Middle);
    UnidirTop unidir2 = newUnidir(UnidirLevel.Top);
   
    pojo.addBidirChild(bidir1);
    pojo.addBidirChild(bidir2);
    pojo.addBidirChild(bidir3);
    pojo.addUnidirChild(unidir1);
    pojo.addUnidirChild(unidir2);

    startEnd.start();
    pm.makePersistent(pojo);
    startEnd.end();

    startEnd.start();
    pojo = pm.getObjectById(HasOneToManyList.class, pojo.getId());
    bidir1 = pm.getObjectById(bidir1.getClass(), bidir1.getId());
    bidir2 = pm.getObjectById(bidir2.getClass(), bidir2.getId());
    bidir3 = pm.getObjectById(bidir3.getClass(), bidir3.getId());
    unidir1 = pm.getObjectById(unidir1.getClass(), unidir1.getId());
    unidir2 = pm.getObjectById(unidir2.getClass(), unidir2.getId());
    assertEquals(0, pojo.getBidirChildren().indexOf(bidir1));
    assertEquals(1, pojo.getBidirChildren().indexOf(bidir2));
View Full Code Here

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

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

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

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

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

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

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

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

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

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

  }
  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

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

    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
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.