Examples of deletePersistent()


Examples of org.apache.ojb.otm.OTMConnection.deletePersistent()

            conn = kit.acquireConnection(PersistenceBrokerFactory.getDefaultKey());
            tx   = kit.getTransaction(conn);

            tx.begin();

            conn.deletePersistent(product);

            tx.commit();
        }
        catch (LockingException ex)
        {
View Full Code Here

Examples of org.datanucleus.state.StateManager.deletePersistent()

                // Mark for L2 cache update
                txCachedIds.add(sm.getInternalObjectId());
            }

            // Move to deleted state
            sm.deletePersistent();
        }
        finally
        {
            clr.unsetPrimary();
        }
View Full Code Here

Examples of org.datanucleus.state.StateManager.deletePersistent()

                    try
                    {
                        if (!objectNotFound.contains(nonReachableIds[i]))
                        {
                            StateManager sm = findStateManager(findObject(nonReachableIds[i], true, true, null));
                            sm.deletePersistent();
                            if (i % 10000 == 0 || i == nonReachableIds.length-1)
                            {
                                // Flush every 10000 or on the last one to clear out dirties
                                flushInternal(true);
                            }
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.deletePersistent()

        throw ((JDOTransactionItf) tx).rollBackOnInternalError(e);
      } catch (PersistenceException e) {
        throw new JDOException("", ExceptionHelper.getNested(e));
      }
      //remove the multivalued fields and cascade delete
      sa.deletePersistent(this);
        if (logger.isLoggable(BasicLevel.DEBUG)) {
            logger.log(BasicLevel.DEBUG,
                    "Delete a persistent instance, identifier=" + sp.getPName());
        }
    }
View Full Code Here

Examples of org.odmg.Database.deletePersistent()

        tx.begin();

        Database db = impl.getDatabase(product);

        db.deletePersistent(product);

        tx.commit();
    }

    /**
 
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.