Examples of BidirTopList


Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

import static com.google.appengine.datanucleus.PolymorphicTestUtils.getEntityKind;

public class JPAOneToManyPolymorphicListTest extends JPAOneToManyPolymorphicTestCase {

  public void testInsert_NewParentAndChild() throws Exception {
    testInsert_NewParentAndChild(new BidirTopList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Bottom, 1, 1);
    testInsert_NewParentAndChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Middle, 2, 2);
    testInsert_NewParentAndChild(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Top, 3, 3);
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

  }

  public void testInsert_NewParentAndChild_NoTxn() throws Exception {
    testInsert_NewParentAndChild(new BidirBottomList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Middle, 1, 1);
    testInsert_NewParentAndChild(new BidirTopList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Bottom, 2, 2);
    testInsert_NewParentAndChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Top, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

    testInsert_NewParentAndChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Top, 3, 3);
  }

  public void testInsert_ExistingParentNewChild() throws Exception {
    testInsert_ExistingParentNewChild(new BidirTopList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Top, 1, 1);
    testInsert_ExistingParentNewChild(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Bottom, 2, 2);
    testInsert_ExistingParentNewChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Middle, 3, 3);
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

  public void testInsert_ExistingParentNewChild_NoTxn() throws Exception {
    testInsert_ExistingParentNewChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Middle, 1, 1);
    testInsert_ExistingParentNewChild(new BidirBottomList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Top, 2, 2);
    testInsert_ExistingParentNewChild(new BidirTopList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Bottom, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

  }

  public void testUpdate_UpdateChildWithMerge() throws Exception {
    testUpdate_UpdateChildWithMerge(new BidirMiddleList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Top, 1, 1);
    testUpdate_UpdateChildWithMerge(new BidirTopList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Bottom, 2, 2);
    testUpdate_UpdateChildWithMerge(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Middle, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

    testUpdate_UpdateChildWithMerge(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Middle, 3, 3);
  }

  public void testUpdate_UpdateChildWithMerge_NoTxn() throws Exception {
    testUpdate_UpdateChildWithMerge(new BidirTopList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Top, 1, 1);
    testUpdate_UpdateChildWithMerge(new BidirMiddleList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Middle, 2, 2);
    testUpdate_UpdateChildWithMerge(new BidirBottomList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Bottom, 3, 3);
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

  public void testUpdate_UpdateChild() throws Exception {
    testUpdate_UpdateChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Middle, 1, 1);
    testUpdate_UpdateChild(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Top, 2, 2);
    testUpdate_UpdateChild(new BidirTopList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Bottom, 3, 3);
  }
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

    testUpdate_UpdateChild(new BidirTopList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Bottom, 3, 3);
  }

  public void testUpdate_UpdateChild_NoTxn() throws Exception {
    testUpdate_UpdateChild(new BidirTopList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Middle, 1, 1);
    testUpdate_UpdateChild(new BidirMiddleList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Top, 2, 2);
    testUpdate_UpdateChild(new BidirBottomList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Bottom, 3, 3);
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

    testUpdate_UpdateChild(new BidirBottomList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Bottom, 3, 3);
  }

  public void testUpdate_NullOutChildren() throws Exception {
    testUpdate_NullOutChildren(new BidirTopList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Bottom, 1);
    testUpdate_NullOutChildren(new BidirBottomList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Middle, 2);
    testUpdate_NullOutChildren(new BidirMiddleList(), new HasOneToManyListJPA(),
        TXN_START_END, UnidirLevel.Top, 3);
View Full Code Here

Examples of com.google.appengine.datanucleus.test.jpa.BidirectionalSingleTableChildListJPA.BidirTopList

  }

  public void testUpdate_NullOutChildren_NoTxn() throws Exception {
    testUpdate_NullOutChildren(new BidirBottomList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Middle, 1);
    testUpdate_NullOutChildren(new BidirTopList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Top, 2);
    testUpdate_NullOutChildren(new BidirMiddleList(), new HasOneToManyListJPA(),
        NEW_EM_START_END, UnidirLevel.Bottom, 3);
  }
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.