Examples of save()


Examples of net.ex337.scriptus.model.ScriptProcess.save()

  public void test_lifecycle() throws IOException {
    ScriptProcess newp = datastore.newProcess("test", "addTwoNumbers.js", true, "", "", TransportType.Dummy);
    newp.setArgs("foo bar");
   
    newp.save();
   
    ScriptProcess saved = datastore.getProcess(newp.getPid());
   
    assertEquals("pid same", newp.getPid(), saved.getPid());
   
View Full Code Here

Examples of net.floodlightcontroller.storage.IResultSet.save()

        IResultSet resultSet = storageSource.executeQuery(PERSON_TABLE_NAME, PERSON_COLUMN_LIST, null, new RowOrdering(PERSON_SSN));
        for (int i = 0; i < 4; i++) {
            resultSet.next();
            resultSet.deleteRow();
        }
        resultSet.save();
        resultSet.close();
       
        // Now query again to verify that the rows were deleted
        resultSet = storageSource.executeQuery(PERSON_TABLE_NAME, PERSON_COLUMN_LIST, null, new RowOrdering(PERSON_SSN));
        checkExpectedResults(resultSet, PERSON_COLUMN_LIST, expectedResults);
View Full Code Here

Examples of net.fp.rp.search.plugins.IFeedbackDataStore.save()

        //if feedback is allow then store it and update the links
        if (feedbackAllow) {
            try {
                //store the feedback
                IFeedbackDataStore store = PluginManager.getFeedbackDataStores();
                store.save(advice);

                //notify the feedback plugins to recalculate the score
                IInterestedInFeedback[] feedbackPlugins = PluginManager.getInterestedInFeedback();

                for (int i = 0; i < feedbackPlugins.length; i++) {
View Full Code Here

Examples of net.jimmc.jshortcut.JShellLink.save()

                JShellLink link = new JShellLink();
                link.setFolder(JShellLink.getDirectory("desktop"));
                link.setName("Peptide Shaker " + PeptideShaker.getVersion());
                link.setIconLocation(iconFileLocation);
                link.setPath(jarFileLocation);
                link.save();
            } catch (Exception e) {
                System.out.println("An error occurred when trying to create a desktop shortcut...");
                e.printStackTrace();
            }
        }
View Full Code Here

Examples of net.loyin.model.Employee.save()

    try {
      Employee m = getModel(Employee.class);
      if (m.getLong("id") != null) {
        m.update();
      } else {
        m.save();
      }
       Db.update("update employee e set e.orgid=(select p.orgid from partment p where p.id=e.partmentid)");
      toDwzJson(200, "保存成功!", navTabId);
    } catch (Exception e) {
      log.error("保存员工异常", e);
View Full Code Here

Examples of net.loyin.model.Menu.save()

    try{
      Menu m=getModel(Menu.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      log.error("保存菜单异常",e);
      toDwzJson( 300, "保存异常!");
View Full Code Here

Examples of net.loyin.model.Organization.save()

    try{
      Organization m=getModel(Organization.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      toDwzJson( 300,"保存异常!");
    }
View Full Code Here

Examples of net.loyin.model.Partment.save()

    try{
      Partment m=getModel(Partment.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      log.error("保存部门异常",e);
      toDwzJson(300, "保存异常!");
View Full Code Here

Examples of net.loyin.model.Role.save()

    try{
      Role m=getModel(Role.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson( 200, "保存成功!", navTabId);
    }catch(Exception e){
      toDwzJson( 300, "保存异常!");
    }
View Full Code Here

Examples of net.loyin.model.Systemparam.save()

    try{
      Systemparam m=getModel(Systemparam.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson(200, "保存成功!", navTabId);
    }catch(Exception e){
      toDwzJson( 300, "保存异常!");
    }
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.