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

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


    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


    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    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

    switchDatasource(PersistenceManagerFactoryName.nontransactional);
    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    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

  }
  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

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

    testOnlyOnePutOnChildUpdate(
        new HasOneToManyList(), new BidirBottom(), startEnd);
    testOnlyOnePutOnChildUpdate(
        new HasOneToManyList(), new BidirMiddle(), startEnd);
    testOnlyOnePutOnChildUpdate(
        new HasOneToManyList(), new BidirTop(), startEnd);
  }
View Full Code Here

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

  public void xtestRemove2ObjectsAtIndex_NoTxn() {
    testRemove2ObjectsAtIndex(NEW_PM_START_END);
  }

  private void testRemove2ObjectsAtIndex(StartEnd startEnd) {
    BidirTop bidirChild1 = new BidirTop();
    BidirTop bidirChild2 = new BidirTop();
    UnidirTop unidir1 = new UnidirTop();
    UnidirTop unidir2 = new UnidirTop();

    HasOneToManyList parent = new HasOneToManyList();
    parent.addBidirChild(bidirChild1);
    bidirChild1.setParent(parent);
    parent.addBidirChild(bidirChild2);
    bidirChild2.setParent(parent);
    parent.addUnidirChild(unidir1);
    parent.addUnidirChild(unidir2);

    startEnd.start();
    pm.makePersistent(parent);
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.BidirectionalSuperclassTableChildListJDO.BidirTop

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.