Package com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA

Examples of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA


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


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

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

  }
  public void testUpdate_UpdateChild_NoTxn() throws Exception {
    testUpdate_UpdateChild(NEW_EM_START_END);
  }
  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

  }
  public void testUpdate_NullOutChildren_NoTxn() throws Exception {
    testUpdate_NullOutChildren(NEW_EM_START_END);
  }
  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

  }
  public void testUpdate_ClearOutChildren_NoTxn() throws Exception {
    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

  }
  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

    testRemoveObject(new HasOneToManySetJPA(), new BidirMiddleSet(nextNamedKey()),
        new BidirTopSet(nextNamedKey()), startEnd, UnidirLevel.Bottom, UnidirLevel.Middle, 3);
  }

  public void testChangeParent() throws Exception {
    testChangeParent(new HasOneToManySetJPA(), new HasOneToManySetJPA(), TXN_START_END);
  }
View Full Code Here

  public void testChangeParent() throws Exception {
    testChangeParent(new HasOneToManySetJPA(), new HasOneToManySetJPA(), TXN_START_END);
  }
  public void testChangeParent_NoTxn() throws Exception {
    testChangeParent(new HasOneToManySetJPA(), new HasOneToManySetJPA(), NEW_EM_START_END);
  }
View Full Code Here

  }
  public void testChangeParent_NoTxn() throws Exception {
    testChangeParent(new HasOneToManySetJPA(), new HasOneToManySetJPA(), NEW_EM_START_END);
  }
  public void testNewParentNewChild_NamedKeyOnChild() throws Exception {
    testNewParentNewChild_NamedKeyOnChild(new HasOneToManySetJPA(), TXN_START_END);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jpa.HasPolymorphicRelationsSetJPA.HasOneToManySetJPA

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.