Examples of update()


Examples of org.exolab.castor.jdo.Database.update()

        //THIS Part Works!
        db.begin();
        DependentObject depends = new DependentObject();
        depends.setDescrip("Description");
        master.setDepends(depends);
        db.update(master);
        db.commit();

        assertTrue(master.getId() != 0);
        int masterId = master.getId();
View Full Code Here

Examples of org.exolab.castor.persist.LockEngine.update()

                    "update object which is already in the transaction");
        }

        try {
            _tracker.trackObject(molder, oid, object);
            if (engine.update(this, oid, object, null, 0)) {
                _tracker.markCreating(object);
                // yip: there is one issue here. Because object might be marked
                // to be created in the update process. However, we have no easy
                // way to fire jdoCreating() events from here.
View Full Code Here

Examples of org.exolab.castor.persist.TransactionContext.update()

        tx = getTransaction();
        info = _scope.getPersistenceInfo( object.getClass() );
        if ( info == null )
            throw new ClassNotPersistenceCapableException( Messages.format("persist.classNotPersistenceCapable", object.getClass().getName()) );

        tx.update( info.engine, info.molder, object, null );
    }


    /**
     * @deprecated
 
View Full Code Here

Examples of org.exoplatform.application.registry.ApplicationRegistryService.update()

      {
         UIApplication uiApp = ctx.getUIApplication();
         uiApp.addMessage(new ApplicationMessage("application.msg.changeNotExist", null));
         return;
      }
      service.update(application_);
      Application selectedApplication = getApplication();
      UIApplicationOrganizer uiApplicationOrganizer = getAncestorOfType(UIApplicationOrganizer.class);
      uiApplicationOrganizer.reload();
      uiApplicationOrganizer.setSelectedApplication(selectedApplication);
   }
View Full Code Here

Examples of org.exoplatform.portal.mop.page.PageContext.update()

    public static UIPage toUIPage(String pageRef, UIComponent uiParent) throws Exception {
        UserPortalConfigService configService = uiParent.getApplicationComponent(UserPortalConfigService.class);
        PageContext pageContext = configService.getPage(PageKey.parse(pageRef));
        Page page = configService.getDataStorage().getPage(pageRef);
        pageContext.update(page);
        return toUIPage(page, uiParent);
    }

    public static UIPage toUIPage(Page page, UIComponent uiParent) throws Exception {
        UIPage uiPage = Util.getUIPortal().findFirstComponentOfType(UIPage.class);
View Full Code Here

Examples of org.exoplatform.services.jcr.core.value.EditableBinaryValue.update()

      String update1String = "update#1";

      long pos = 1024 * 1024;

      // update
      exv.update(new ByteArrayInputStream(update1String.getBytes()), update1String.length(), pos);

      // transient, before the save
      try
      {

View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.SessionDataManager.update()

         new TransientNodeData(QPath.makeChildPath(auditHistory.getQPath(), new InternalQName(null, auditRecordName)),
            IdGenerator.generate(), -1, AuditService.EXO_AUDITRECORD, new InternalQName[0],
            Integer.parseInt(auditRecordName), auditHistory.getIdentifier(), exoAuditRecordAccessControlList);

      // exo:auditRecord
      dataManager.update(new ItemState(arNode, ItemState.ADDED, true, ((ItemImpl)currentItem).getInternalPath()), true);

      // jcr:primaryType
      TransientPropertyData arPrType =
         TransientPropertyData.createPropertyData(arNode, Constants.JCR_PRIMARYTYPE, PropertyType.NAME, false,
            new TransientValueData(arNode.getPrimaryTypeName()));
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.value.BinaryValue.update()

      String update1String = "update#1";

      long pos = 1024 * 1024;

      // update
      exv.update(new ByteArrayInputStream(update1String.getBytes()), update1String.length(), pos);

      // transient, before the save
      try
      {

View Full Code Here

Examples of org.exoplatform.services.jcr.storage.WorkspaceStorageConnection.update()

      WorkspaceStorageConnection conn = dataContainer.openConnection();
      if (conn instanceof JDBCStorageConnection)
      {
         JDBCStorageConnection jdbcConn = (JDBCStorageConnection)conn;

         conn.update(bugData);
         jdbcConn.getJdbcConnection().commit();

         NodeData parent =
            (NodeData)session.getTransientNodesManager().getTransactManager()
               .getItemData(jcrUuid.getParentIdentifier());
View Full Code Here

Examples of org.fao.geonet.kernel.harvest.HarvestManager.update()

  public Element exec(Element params, ServiceContext context) throws Exception {
    GeonetContext  gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
    HarvestManager hm = gc.getBean(HarvestManager.class);

    // Add current user has harvester owner
        hm.update(params, context.getUserSession().getUserId());

    String id = params.getAttributeValue("id");

    return new Element(Jeeves.Elem.RESPONSE).addContent(new Element("id").setText(id));
  }
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.