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

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


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


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

  }
  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

    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

  }
  private void testInsertExistingParentNewChild(StartEnd startEnd) throws EntityNotFoundException {
    String expectedBidirKind = getEntityKind(BidirTop.class);
    String expectedUnidirKind  = getEntityKind(UnidirTop.class);
    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

    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

    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

  }
  private void testAddAtPosition(StartEnd startEnd) throws EntityNotFoundException {
    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

    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

    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

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.