Examples of save()


Examples of es.udc.tfg.journals.model.user.UserDao.save()

      // Register user.
      User userProfile = new User("user@udc.es",
          PasswordEncrypter.crypt("userPassword"), "name",
          "lastName", "user");
      userProfileDao.save(userProfile);
      Long userId = userProfile.getUserId();
      System.out.println("User with userId '" + userId
          + "' has been created");
      System.out.println(userProfile);
View Full Code Here

Examples of es.urjc.escet.semium.ConfigManager.save()

            cm.reload();
            status = "reloaded";
        }
        if(request.getParameter("rewrite")!=null){
            try{
                cm.save();
                status = "written";
            }catch (Exception ex){
                status = "could not write config: " + ex.toString();
            }
        }
View Full Code Here

Examples of etc.aloe.cscw2013.WekaModel.save()

        J48 classifier = new J48();
        classifier.setNumFolds(456);
        WekaModel model = new WekaModel(classifier);

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        assertTrue(model.save(out));
        out.close();
        byte[] serializedStr = out.toByteArray();

        //It wrote something
        assertTrue(serializedStr.length > 0);
View Full Code Here

Examples of event_manager.models.Client.save()

        boolean saved = false;
        String errors = "";
        Client client = (Client) model;

        if(client.save()) {
            saved = true;
        } else {
            errors += DBHelper.getNiceErrors(model);
        }
View Full Code Here

Examples of event_manager.models.Event.save()

        double vatPercentage = event.getDouble("vat_percentage");
        double totalAmount = event.getDouble("total_amount");
        double amountWithVat = totalAmount + vatPercentage/100 * totalAmount;
        event.set("amount_with_vat", amountWithVat);

        if(event.save()) {
            saved = true;
        } else {
            errors += DBHelper.getNiceErrors(model);
        }

View Full Code Here

Examples of event_manager.models.Staff.save()

        boolean saved = false;
        String errors = "";
        Staff st = (Staff) model;
        String profilePicturePath = st.getProfilePicturePath();

        if(st.save()) {
            saved = true;
            // Upload profile picture if provided
            if(!profilePicturePath.equals("")) {
                File tmpFile = new File(profilePicturePath);
                if(tmpFile.exists() && tmpFile.isFile()) {
View Full Code Here

Examples of factOrFiction.model.Deck.save()

  @Override
  public void doSave(IProgressMonitor monitor) {
    Deck deck = (Deck) getEditorInput().getAdapter(Deck.class);

    if (deck != null) {
      deck.save(monitor, (File) getEditorInput().getAdapter(File.class));
    }
    setDirty(false);
  }

  private static final String DIALOG_SETTING_SECTION_NAME = "SaveLocation"; //$NON-NLS-1$
View Full Code Here

Examples of factOrFiction.tournament.standard.StandardTournament.save()

         
          String[] restrictedCards = StringUtils.parseToStringArray( store.getString(PreferenceConstants.P_RESTRICTED_CARDS));
          factory.read(url, store.getString(PreferenceConstants.P_REGEX_CARD), restrictedCards );
          monitor.worked(1);
         
          factory.save();
          monitor.worked(1);
        } catch (MalformedURLException e) {
          MessageDialog.openInformation(
              window.getShell(),
              "FactOrFiction Tournament Format Plug-in",
View Full Code Here

Examples of flex2.tools.oem.Library.save()

          FileUtil.writeFile(c2.getRBListFileName(), list);
        }

    }

    lib.save(new BufferedOutputStream(new FileOutputStream(new File(c2.getOutput() + ".incr"))));   
    lib.clean();
  }
 
  private static CompcConfiguration getCompcConfiguration(String[] args)
        throws ConfigurationException, IOException
View Full Code Here

Examples of floobits.common.interfaces.IDoc.save()

            public void run(Buf b) {
                IDoc document = context.iFactory.getDocument(buf.path);
                if (document == null) {
                    return;
                }
                document.save();
            }
        });
    }

    void _on_create_buf(JsonObject obj) {
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.