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

Examples of com.google.appengine.datanucleus.test.jdo.HasPolymorphicRelationsListJDO.HasOneToManyList


    switchDatasource(PersistenceManagerFactoryName.nontransactional);
    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testRemoveAll(NEW_PM_START_END);
  }
  private void testRemoveAll(StartEnd startEnd) throws EntityNotFoundException {
    testRemoveAll(new HasOneToManyList(), new BidirBottom(),
                  new BidirMiddle(), new BidirTop(), startEnd);
  }
View Full Code Here


    switchDatasource(PersistenceManagerFactoryName.nontransactional);
    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testChangeParent(NEW_PM_START_END);
  }
  private void testChangeParent(StartEnd startEnd) {
    testChangeParent(new HasOneToManyList(), new HasOneToManyList(), startEnd,
  UnidirLevel.Top);
    testChangeParent(new HasOneToManyList(), new HasOneToManyList(), startEnd,
  UnidirLevel.Middle);
    testChangeParent(new HasOneToManyList(), new HasOneToManyList(), startEnd,
  UnidirLevel.Bottom);
  }
View Full Code Here

    switchDatasource(PersistenceManagerFactoryName.nontransactional);
    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testNewParentNewChild_NamedKeyOnChild(NEW_PM_START_END);
  }
  private void testNewParentNewChild_NamedKeyOnChild(StartEnd startEnd) throws EntityNotFoundException {
    testNewParentNewChild_NamedKeyOnChild(new HasOneToManyList(), startEnd, UnidirLevel.Middle);
    testNewParentNewChild_NamedKeyOnChild(new HasOneToManyList(), startEnd, UnidirLevel.Bottom);
    testNewParentNewChild_NamedKeyOnChild(new HasOneToManyList(), startEnd, UnidirLevel.Top);
  }
View Full Code Here

    assertEquals(UnidirTop.class.getName(), count, countForClass(UnidirTop.class));
  }

  public void testAddAlreadyPersistedChildToParent_NoTxnSamePm() {
    int count = 1;
    testAddAlreadyPersistedChildToParent_NoTxnSamePm(new HasOneToManyList(), UnidirLevel.Top, count++);
    testAddAlreadyPersistedChildToParent_NoTxnSamePm(new HasOneToManyList(), UnidirLevel.Middle, count++);
    testAddAlreadyPersistedChildToParent_NoTxnSamePm(new HasOneToManyList(), UnidirLevel.Bottom, count++);
  }
View Full Code Here

    testAddAlreadyPersistedChildToParent_NoTxnSamePm(new HasOneToManyList(), UnidirLevel.Bottom, count++);
  }

  public void testAddAlreadyPersistedChildToParent_NoTxnDifferentPm() {
    int count = 1;
    testAddAlreadyPersistedChildToParent_NoTxnDifferentPm(new HasOneToManyList(), UnidirLevel.Middle, count++);
    testAddAlreadyPersistedChildToParent_NoTxnDifferentPm(new HasOneToManyList(), UnidirLevel.Bottom, count++);
    testAddAlreadyPersistedChildToParent_NoTxnDifferentPm(new HasOneToManyList(), UnidirLevel.Top, count++);
  }
View Full Code Here

    switchDatasource(PersistenceManagerFactoryName.nontransactional);
    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testAddQueriedParentToBidirChild(NEW_PM_START_END);
  }
  private void testAddQueriedParentToBidirChild(StartEnd startEnd) throws EntityNotFoundException {
    testAddQueriedParentToBidirChild(new HasOneToManyList(), new BidirMiddle(), startEnd, getEntityKind(BidirTop.class));
    testAddQueriedParentToBidirChild(new HasOneToManyList(), new BidirTop(), startEnd, getEntityKind(BidirTop.class));
    testAddQueriedParentToBidirChild(new HasOneToManyList(), new BidirBottom(), startEnd, getEntityKind(BidirTop.class));
  }
View Full Code Here

    switchDatasource(PersistenceManagerFactoryName.nontransactional);
    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testAddFetchedParentToBidirChild(NEW_PM_START_END);
  }
  private void testAddFetchedParentToBidirChild(StartEnd startEnd) throws EntityNotFoundException {
    testAddFetchedParentToBidirChild(new HasOneToManyList(), new BidirTop(), startEnd, getEntityKind(BidirTop.class));
    testAddFetchedParentToBidirChild(new HasOneToManyList(), new BidirMiddle(), startEnd, getEntityKind(BidirTop.class));
    testAddFetchedParentToBidirChild(new HasOneToManyList(), new BidirBottom(), startEnd, getEntityKind(BidirTop.class));
  }
View Full Code Here

  }
  private void testReplaceBidirColl(StartEnd startEnd) {
    Collection<BidirTop> childList = Utils.<BidirTop>newArrayList(
        new BidirMiddle(), new BidirBottom());
    testReplaceBidirColl(
        new HasOneToManyList(), new BidirTop(), childList, startEnd);
  }
View Full Code Here

    getExecutionContext().setProperty(PROP_DETACH_ON_CLOSE, true);
    testOnlyOneParentPutOnParentAndChildUpdate(NEW_PM_START_END);
  }
  private void testOnlyOneParentPutOnParentAndChildUpdate(StartEnd startEnd) throws Throwable {
    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

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.HasPolymorphicRelationsListJDO.HasOneToManyList

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.