Package javax.jdo

Examples of javax.jdo.PersistenceManager.deletePersistent()


      assertTrue(a2.getB() == null);

      // Delete persistent (speedoproxy)
      beginTx(pm, task, threadId, txId);
      pm.deletePersistent(a1);
      pm.deletePersistent(a2);
      pm.deletePersistent(b1);
      pm.deletePersistent(b2);
      commitTx(pm, task, threadId, txId);

      res.endTest();
View Full Code Here


      // Delete persistent (speedoproxy)
      beginTx(pm, task, threadId, txId);
      pm.deletePersistent(a1);
      pm.deletePersistent(a2);
      pm.deletePersistent(b1);
      pm.deletePersistent(b2);
      commitTx(pm, task, threadId, txId);

      res.endTest();
    } catch (JDOFatalException e) {
View Full Code Here

      // Delete persistent (speedoproxy)
      beginTx(pm, task, threadId, txId);
      pm.deletePersistent(a1);
      pm.deletePersistent(a2);
      pm.deletePersistent(b1);
      pm.deletePersistent(b2);
      commitTx(pm, task, threadId, txId);

      res.endTest();
    } catch (JDOFatalException e) {
      rollbackOnException(pm, e, res, task, threadId, txId);
View Full Code Here

                Query query = pm.newQuery(cs[i]);
                Collection col = (Collection) query.execute();
                Iterator it = col.iterator();
                while(it.hasNext()) {
                    Object o = it.next();
                    pm.deletePersistent(o);

                }
                query.close(col);
            }
            pm.currentTransaction().commit();
View Full Code Here

      for (int no = 0; no < dctx.nbDeletion; no++) {
        int oid = (txId * dctx.nbDeletion) + no;
        if (debug) {
          logger.log(BasicLevel.DEBUG, "Deleting object "  + oid);
        }
        pm.deletePersistent(pm.getObjectById(dctx.oids[oid], false));
      }
      commitTx(pm, task, threadId, txId);
      res.endTest();
    } catch (JDOFatalException e) {
      rollbackOnException(pm, e, res, task, threadId, txId);
View Full Code Here

      assertTrue(b3.getNa() == a1);
      assertTrue(b4.getNa() == a1);

      // Delete persistent (speedoproxy)
      beginTx(pm, task, threadId, txId);
      pm.deletePersistent(pm.getObjectById(oidb3, false));
      assertTrue("reverse reference of b3.na (a1.nbs) must not contain b3",
              !a1.getNbs().contains(b3));
      commitTx(pm, task, threadId, txId);
      pm.close();
View Full Code Here

      pm = pmf.getPersistenceManager();
      assertTrue("reverse reference of b3.na (a1.nbs) must not contain b3",
              !a1.getNbs().contains(b3));

      beginTx(pm, task, threadId, txId);
      pm.deletePersistent(pm.getObjectById(oida1, false));
      pm.deletePersistent(pm.getObjectById(oida2, false));
      pm.deletePersistent(pm.getObjectById(oidb1, false));
      pm.deletePersistent(pm.getObjectById(oidb2, false));
      pm.deletePersistent(pm.getObjectById(oidb4, false));
      commitTx(pm, task, threadId, txId);
View Full Code Here

      assertTrue("reverse reference of b3.na (a1.nbs) must not contain b3",
              !a1.getNbs().contains(b3));

      beginTx(pm, task, threadId, txId);
      pm.deletePersistent(pm.getObjectById(oida1, false));
      pm.deletePersistent(pm.getObjectById(oida2, false));
      pm.deletePersistent(pm.getObjectById(oidb1, false));
      pm.deletePersistent(pm.getObjectById(oidb2, false));
      pm.deletePersistent(pm.getObjectById(oidb4, false));
      commitTx(pm, task, threadId, txId);
View Full Code Here

              !a1.getNbs().contains(b3));

      beginTx(pm, task, threadId, txId);
      pm.deletePersistent(pm.getObjectById(oida1, false));
      pm.deletePersistent(pm.getObjectById(oida2, false));
      pm.deletePersistent(pm.getObjectById(oidb1, false));
      pm.deletePersistent(pm.getObjectById(oidb2, false));
      pm.deletePersistent(pm.getObjectById(oidb4, false));
      commitTx(pm, task, threadId, txId);

      res.endTest();
View Full Code Here

      beginTx(pm, task, threadId, txId);
      pm.deletePersistent(pm.getObjectById(oida1, false));
      pm.deletePersistent(pm.getObjectById(oida2, false));
      pm.deletePersistent(pm.getObjectById(oidb1, false));
      pm.deletePersistent(pm.getObjectById(oidb2, false));
      pm.deletePersistent(pm.getObjectById(oidb4, false));
      commitTx(pm, task, threadId, txId);

      res.endTest();
    } catch (JDOFatalException e) {
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.