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

Examples of com.google.appengine.datanucleus.test.jdo.HasPolymorphicRelationsSetJDO.HasOneToManySet


    testAddAlreadyPersistedChildToParent_NoTxnSamePm(new HasOneToManySet(), UnidirLevel.Bottom, 3);

  }

  public void testAddAlreadyPersistedChildToParent_NoTxnDifferentPm() {
    testAddAlreadyPersistedChildToParent_NoTxnDifferentPm(new HasOneToManySet(), UnidirLevel.Middle, 1);
    testAddAlreadyPersistedChildToParent_NoTxnDifferentPm(new HasOneToManySet(), UnidirLevel.Bottom, 2);
    testAddAlreadyPersistedChildToParent_NoTxnDifferentPm(new HasOneToManySet(), UnidirLevel.Top, 3);
  }
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 HasOneToManySet(), new BidirMiddle(), startEnd,
    getEntityKind(BidirTop.class));
    testAddQueriedParentToBidirChild(new HasOneToManySet(), new BidirTop(), startEnd,
    getEntityKind(BidirTop.class));
    testAddQueriedParentToBidirChild(new HasOneToManySet(), 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 HasOneToManySet(), new BidirTop(), startEnd,
  getEntityKind(BidirTop.class));
    testAddFetchedParentToBidirChild(new HasOneToManySet(), new BidirMiddle(), startEnd,
  getEntityKind(BidirTop.class));
    testAddFetchedParentToBidirChild(new HasOneToManySet(), new BidirBottom(), startEnd,
  getEntityKind(BidirTop.class));
  }
View Full Code Here

    testReplaceBidirColl(NEW_PM_START_END);
  }
  private void testReplaceBidirColl(StartEnd startEnd) {
    Collection<BidirTop> childList = Utils.<BidirTop>newHashSet(
        new BidirMiddle(), new BidirBottom());
    testReplaceBidirColl(new HasOneToManySet(), 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 HasOneToManySet(), new BidirMiddle(), startEnd);
    testOnlyOneParentPutOnParentAndChildUpdate(
        new HasOneToManySet(), new BidirTop(), startEnd);
    testOnlyOneParentPutOnParentAndChildUpdate(
        new HasOneToManySet(), new BidirBottom(), startEnd);
  }
View Full Code Here

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

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

    testOnlyOneParentPutOnChildDelete(new HasOneToManySet(), new BidirBottom(), startEnd);
    testOnlyOneParentPutOnChildDelete(new HasOneToManySet(), new BidirMiddle(), startEnd);
  }

  public void testNonTxnAddOfChildToParentFailsPartwayThrough() throws Throwable {
    testNonTxnAddOfChildToParentFailsPartwayThrough(new HasOneToManySet());
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.datanucleus.test.jdo.HasPolymorphicRelationsSetJDO.HasOneToManySet

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.