Examples of makePersistent()


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

                    else
                    {
                        if (sm.getReferencedPC() == null)
                        {
                            // Persist it
                            sm.makePersistent();
                            id = sm.getInternalObjectId();
                        }
                        else
                        {
                            // Being attached, so use the attached object
View Full Code Here

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

                if (NucleusLogger.PERSISTENCE.isDebugEnabled())
                {
                    NucleusLogger.PERSISTENCE.debug(LOCALISER.msg("010015", StringUtils.toJVMIDString(obj)));
                }
                StateManager sm = findStateManager(obj);
                sm.makePersistent();
                id = sm.getInternalObjectId();
            }
            else if (api.isDeleted(obj))
            {
                // Deleted : (re)-persist it (permitted in JPA, but not JDO - see StateManager)
View Full Code Here

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

                if (NucleusLogger.PERSISTENCE.isDebugEnabled())
                {
                    NucleusLogger.PERSISTENCE.debug(LOCALISER.msg("010015", StringUtils.toJVMIDString(obj)));
                }
                StateManager sm = findStateManager(obj);
                sm.makePersistent();
                id = sm.getInternalObjectId();
            }
            else
            {
                if (api.isPersistent(obj) && api.isTransactional(obj) && api.isDirty(obj) &&
View Full Code Here

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

                    if (NucleusLogger.PERSISTENCE.isDebugEnabled())
                    {
                        NucleusLogger.PERSISTENCE.debug(LOCALISER.msg("010015", StringUtils.toJVMIDString(obj)));
                    }
                    StateManager sm = findStateManager(obj);
                    sm.makePersistent();
                    id = sm.getInternalObjectId();
                }
            }

            if (id != null && txCachedIds != null)
View Full Code Here

Examples of org.exist.memtree.DocumentImpl.makePersistent()

                        // make this document persistent: doc.makePersistent()
                        // returns a map of all root node ids mapped to the corresponding
                        // persistent node. We scan the current sequence and replace all
                        // in-memory nodes with their new persistent node objects.
                        final DocumentImpl expandedDoc = doc.expandRefs(null);
                        final org.exist.dom.DocumentImpl newDoc = expandedDoc.makePersistent();
                        if (newDoc != null) {
                            NodeId rootId = newDoc.getBrokerPool().getNodeFactory().createInstance();
                            for (int j = i; j < count; j++) {
                                v = (NodeValue) items[j].item;
                                if(v.getImplementationType() != NodeValue.PERSISTENT_NODE) {
View Full Code Here

Examples of org.jboss.seam.wiki.core.dao.WikiNodeDAO.makePersistent()

        feed.setDirectory(homeDirectory);
        feed.setAuthor(homeDirectory.getCreatedBy().getFullname());
        feed.setTitle(homeDirectory.getName());
        homeDirectory.setFeed(feed);

        nodeDAO.makePersistent(homeDirectory);

        // Create home page
        WikiDocument homePage = new WikiDocument();
        homePage.setName("Home of " + user.getUsername());
        homePage.setWikiname(WikiUtil.convertToWikiName(homePage.getName()));
View Full Code Here

Examples of org.jboss.seam.wiki.core.dao.WikiNodeDAO.makePersistent()

        homePage.setContentMacros(renderer.getMacros());

        homePage.setParent(homeDirectory);
        homeDirectory.setDefaultFile(homePage);

        nodeDAO.makePersistent(homePage);
    }

    public String logout() {
        Identity.instance().logout();
        return "loggedOut";
View Full Code Here

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

            logger.log(BasicLevel.DEBUG,
                    "New persistent instance, identifier=" + po.getPName());
        }
        if (map == null) {
          //call the po to make persistent the reference field
          state.makePersistent(this);
        } else {
          //call the po to make persistent the reference field, with the map context
          state.makePersistentOnAttach(this, map);
        }
        po.speedoGetHome().sendEvent(HomeItf.POST_NEW, po, null);
View Full Code Here

Examples of org.odmg.Database.makePersistent()

            tx.begin();

            Article example = new Article();
            example.setArticleId(777);
            example.setProductGroupId(7);
            db.makePersistent(example);

            // modify Object
            example.setStock(333);
            example.addToStock(47);
            example.addToStock(7);
View Full Code Here

Examples of org.simplecart.dao.SalesOrderDAO.makePersistent()

       
        // create a customerDAO
        SalesOrderDAO orderDAO = new SalesOrderDAO();
       
        // persist the changes
        orderDAO.makePersistent(newOrder);

        // commit this transaction
        HibernateUtility.commitTransaction();
        HibernateUtility.closeSession();
       
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.