Examples of save()


Examples of org.compiere.model.MRMA.save()

                }
            }
        }
       
        rma.setC_Order_ID(order.getC_Order_ID());
        if (!rma.save())
        {
            throw new IllegalStateException("Could not update RMA document");
        }
       
        return "Order Created: " + order.getDocumentNo();
View Full Code Here

Examples of org.compiere.model.MUserMail.save()

          log.fine(to + " - " + attachment);
          email.addAttachment(attachment);
          //
          String msg = email.send();
          MUserMail um = new MUserMail(mText, getAD_User_ID(), email);
          um.save();
          if (msg.equals(EMail.SENT_OK))
          {
            addLog (C_Invoice_ID, null, null,
              DocumentNo + " @RequestActionEMailOK@ - " + to.getEMail());
            count++;
View Full Code Here

Examples of org.compiere.model.MUserQuery.save()

      else
        return;
      uq.setCode (code.toString());
      uq.setAD_Table_ID (m_AD_Table_ID);
      //
      if (uq.save())
      {
        ADialog.info (m_targetWindowNo, this, "Saved", name);
        refreshUserQueries();
      }
      else
View Full Code Here

Examples of org.compiere.model.MWindow.save()

      size = new Dimension (0,0);
    }
    //
    MWindow win = new MWindow(m_ctx, m_curTab.getAD_Window_ID(), null);
    win.setWindowSize(size);
    win.save();
  //  cmdWinSize
 
  private void cmd_export()
  {
    new AExport(this);
View Full Code Here

Examples of org.conserve.tools.ObjectStack.save()

    if (databaseId == null)
    {
      // the object is unknown
      ObjectStack stack = new ObjectStack(this.adapter,
          object.getClass(), object, delayBuffer);
      stack.save(cw);
      res = stack.getActualRepresentation().getId();
      // label the object as having been inserted by the outside
      if (protect)
      {
        protectionManager.protectObjectExternal(tableName, res,
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.campaign.AbstractCampaign.save()

            return;
        }

        try {
            campaignManager.registerCampaign(campaign);
            campaign.save();
        }
        catch(Exception e) {
            logger.error("Exception while trying to register/save campaign: " + e.getLocalizedMessage(), e);

            alertService
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.object.ObjectInstance.save()

        enc.setObjectInstance(oi);

        // save the instance and template
        try {
            campaign.save();
            oi.save();
        }
        catch(Exception e) {
            logger.error("Exception while saving encounter: " + e.getLocalizedMessage(), e);

            // TODO: alert service
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.object.ObjectTemplate.save()

                ot.addProperty(op);
                op.setObjectTemplate(ot);
                op.setCampaign(ot.getCampaign());

                try {
                    ot.save();
                }
                catch(Exception e) {
                    logger.error("Exception while trying to save object template: " + e.getLocalizedMessage(), e);

                    alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
View Full Code Here

Examples of org.davinci.server.user.LibrarySettings.save()

    if(!isValid(baseFile.getAbsolutePath())) return;
    IStorage settings = userDirectory.newInstance(baseFile, IDavinciServerConstants.SETTINGS_DIRECTORY_NAME);
    settings.mkdirs();
   
    LibrarySettings ls = this.getLibSettings(base);
    ls.save();
    ILibraryFinder[] finders = this.getFinders(base);
    for(int i=0;i<finders.length;i++){
      finders[i].librarySettingsChanged(ls.allLibs());
    }
    rebuildWorkspace();
View Full Code Here

Examples of org.dayatang.persistence.test.domain.Dictionary.save()

    @Test
    public void testValidateFailure() {
        Dictionary dictionary = new Dictionary("", "", gender);
        try {
            dictionary.save();
            repository.flush();
            fail("应抛出异常!");
        } catch (ValidationException e) {
            System.out.println(e.getMessage());
            assertTrue(true);
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.