Examples of BidirTopSet


Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

  private void testUpdate_UpdateChild(StartEnd startEnd) throws Exception {
    testUpdate_UpdateChild(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 1, 1);
    testUpdate_UpdateChild(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 2, 2);
    testUpdate_UpdateChild(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

  private void testUpdate_NullOutChildren(StartEnd startEnd) throws Exception {
    testUpdate_NullOutChildren(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 1);
    testUpdate_NullOutChildren(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 2);
    testUpdate_NullOutChildren(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

    testUpdate_ClearOutChildren(NEW_EM_START_END);
  }
  private void testUpdate_ClearOutChildren(StartEnd startEnd) throws Exception {
    testUpdate_ClearOutChildren(new BidirMiddleSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Top, 1);
    testUpdate_ClearOutChildren(new BidirTopSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Middle, 2);
    testUpdate_ClearOutChildren(new BidirBottomSet(), new HasOneToManySetJPA(),
  startEnd, UnidirLevel.Bottom, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

  }
  public void testRemoveObject_NoTxn() throws Exception {
    testRemoveObject(NEW_EM_START_END);
  }
  private void testRemoveObject(StartEnd startEnd) throws Exception {
    testRemoveObject(new HasOneToManySetJPA(), new BidirTopSet(nextNamedKey()),
        new BidirTopSet(nextNamedKey()), startEnd, UnidirLevel.Top, UnidirLevel.Bottom, 1);
    testRemoveObject(new HasOneToManySetJPA(), new BidirBottomSet(nextNamedKey()),
        new BidirTopSet(nextNamedKey()), startEnd, UnidirLevel.Middle, UnidirLevel.Top, 2);
    testRemoveObject(new HasOneToManySetJPA(), new BidirMiddleSet(nextNamedKey()),
        new BidirTopSet(nextNamedKey()), startEnd, UnidirLevel.Bottom, UnidirLevel.Middle, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

    testAddQueriedParentToBidirChild(NEW_EM_START_END);
  }
  private void testAddQueriedParentToBidirChild(StartEnd startEnd) throws Exception {
    testAddQueriedParentToBidirChild(new HasOneToManySetJPA(), new BidirMiddleSet(),
  startEnd);
    testAddQueriedParentToBidirChild(new HasOneToManySetJPA(), new BidirTopSet(),
  startEnd);
    testAddQueriedParentToBidirChild(new HasOneToManySetJPA(), new BidirBottomSet(),
  startEnd);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

    testAddFetchedParentToBidirChild(NEW_EM_START_END);
  }
  public void testAddFetchedParentToBidirChild(StartEnd startEnd) throws Exception {
    testAddFetchedParentToBidirChild(new HasOneToManySetJPA(), new BidirBottomSet(),
  startEnd);
    testAddFetchedParentToBidirChild(new HasOneToManySetJPA(), new BidirTopSet(),
  startEnd);
    testAddFetchedParentToBidirChild(new HasOneToManySetJPA(), new BidirMiddleSet(),
  startEnd);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

  }
  public void testOnlyOneParentPutOnParentAndChildUpdate_NoTxn() throws Throwable {
    testOnlyOneParentPutOnParentAndChildUpdate(NEW_EM_START_END);
  }
  private void testOnlyOneParentPutOnParentAndChildUpdate(StartEnd startEnd) throws Throwable {
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManySetJPA(), new BidirTopSet(),
        startEnd);
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManySetJPA(), new BidirMiddleSet(),
        startEnd);
    testOnlyOneParentPutOnParentAndChildUpdate(new HasOneToManySetJPA(), new BidirBottomSet(),
        startEnd);
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

  }
  public void testOnlyOnePutOnChildUpdate_NoTxn() throws Throwable {
    testOnlyOnePutOnChildUpdate(NEW_EM_START_END);
  }
  private void testOnlyOnePutOnChildUpdate(StartEnd startEnd) throws Throwable {
    testOnlyOnePutOnChildUpdate(new HasOneToManySetJPA(), new BidirTopSet(),
  startEnd);
    testOnlyOnePutOnChildUpdate(new HasOneToManySetJPA(), new BidirMiddleSet(),
  startEnd);
    testOnlyOnePutOnChildUpdate(new HasOneToManySetJPA(), new BidirBottomSet(),
  startEnd);
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

  }

  public void testOnlyOneParentPutOnChildDelete() throws Throwable {
    // 1 put to remove the keys
    int expectedUpdatePuts = 1;
    testOnlyOneParentPutOnChildDelete(new HasOneToManySetJPA(), new BidirTopSet(),
                                      TXN_START_END, expectedUpdatePuts);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildSetJPA.BidirTopSet

  }

  public void testOnlyOneParentPutOnChildDelete_NoTxn() throws Throwable {
    // updates are atomic when non-tx, so get 1 after each collection clear, and 1 for the update.
    int expectedUpdatePuts = 5;
    testOnlyOneParentPutOnChildDelete(new HasOneToManySetJPA(), new BidirTopSet(),
                                     NEW_EM_START_END, expectedUpdatePuts);
  }
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.