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

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


  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

    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

    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

    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

    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

    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

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.BidirectionalSuperclassTableChildListJDO.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.