Examples of BidirMiddle


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

    String expectedBidirKind = getEntityKind(BidirTop.class);
    String expectedUnidirKind  = getEntityKind(UnidirTop.class);
    int expectedParent = 1, expectedChild = 1;
    testInsert_NewParentAndChild(new HasOneToManyList(), new BidirTop(), startEnd, UnidirLevel.Bottom,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
    testInsert_NewParentAndChild(new HasOneToManyList(), new BidirMiddle(), startEnd, UnidirLevel.Top,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
    testInsert_NewParentAndChild(new HasOneToManyList(), new BidirBottom(), startEnd, UnidirLevel.Middle,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
  }
View Full Code Here

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

    int expectedParent = 1, expectedChild = 1;
    testInsert_ExistingParentNewChild(new HasOneToManyList(), new BidirBottom(), startEnd, UnidirLevel.Middle,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
    testInsert_ExistingParentNewChild(new HasOneToManyList(), new BidirTop(), startEnd, UnidirLevel.Bottom,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
    testInsert_ExistingParentNewChild(new HasOneToManyList(), new BidirMiddle(), startEnd, UnidirLevel.Top,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
  }
View Full Code Here

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

    String expectedUnidirKind  = getEntityKind(UnidirTop.class);
    int expectedParent = 1, expectedChild = 1;

    testSwapAtPosition(new HasOneToManyList(), new BidirTop(), new BidirTop(), startEnd,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
    testSwapAtPosition(new HasOneToManyList(), new BidirTop(), new BidirMiddle(), startEnd,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
    testSwapAtPosition(new HasOneToManyList(), new BidirMiddle(), new BidirBottom(), startEnd,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
    testSwapAtPosition(new HasOneToManyList(), new BidirMiddle(), new BidirMiddle(), startEnd,
  expectedBidirKind, expectedUnidirKind, expectedParent++, expectedChild++);
  }
View Full Code Here

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

  private void testRemoveAtPosition(StartEnd startEnd) throws EntityNotFoundException {
    String expectedBidirKind = getEntityKind(BidirTop.class);
    String expectedUnidirKind  = getEntityKind(UnidirTop.class);
    int count = 1;

    testRemoveAtPosition(new HasOneToManyList(), new BidirTop(), new BidirMiddle(), new BidirTop(), startEnd,
  expectedBidirKind, expectedUnidirKind, count++);
    testRemoveAtPosition(new HasOneToManyList(), new BidirMiddle(), new BidirTop(), new BidirBottom(), startEnd,
  expectedBidirKind, expectedUnidirKind, count++);
    testRemoveAtPosition(new HasOneToManyList(), new BidirBottom(), new BidirBottom(), new BidirMiddle(), startEnd,
  expectedBidirKind, expectedUnidirKind, count++);
  }
View Full Code Here

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

    String expectedBidirKind = getEntityKind(BidirTop.class);
    String expectedUnidirKind  = getEntityKind(UnidirTop.class);
    int count = 1;
    testAddAtPosition(new HasOneToManyList(), new BidirTop(), new BidirBottom(), startEnd,
  expectedBidirKind, expectedUnidirKind, count++);
    testAddAtPosition(new HasOneToManyList(), new BidirMiddle(), new BidirTop(), startEnd,
  expectedBidirKind, expectedUnidirKind, count++);
    testAddAtPosition(new HasOneToManyList(), new BidirBottom(), new BidirMiddle(), startEnd,
  expectedBidirKind, expectedUnidirKind, count++);
  }
View Full Code Here

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

    String expectedBidirKind = getEntityKind(BidirTop.class);
    String expectedUnidirKind  = getEntityKind(UnidirTop.class);
    int count = 1;
    testUpdate_UpdateChildWithMerge(new HasOneToManyList(), new BidirTop(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Bottom, count++);
    testUpdate_UpdateChildWithMerge(new HasOneToManyList(), new BidirMiddle(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Top, count++);
    testUpdate_UpdateChildWithMerge(new HasOneToManyList(), new BidirBottom(), startEnd,
  expectedBidirKind, expectedUnidirKind, UnidirLevel.Middle, count++);
  }
View Full Code Here

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

    String expectedUnidirKind  = getEntityKind(UnidirTop.class);
    int count = 1;

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

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

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

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

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