Examples of save()


Examples of com.mossle.bpm.persistence.manager.BpmConfNodeManager.save()

            bpmConfNode.setConfForm(0);
            bpmConfNode.setConfOperation(2);
            bpmConfNode.setConfNotice(2);
            bpmConfNode.setPriority(priority);
            bpmConfNode.setBpmConfBase(bpmConfBase);
            bpmConfNodeManager.save(bpmConfNode);
        }

        // 配置监听器
        processListener(process.getExecutionListeners(), bpmConfNode);
    }
View Full Code Here

Examples of com.mossle.bpm.persistence.manager.BpmConfUserManager.save()

            bpmConfUser.setValue(value);
            bpmConfUser.setType(type);
            bpmConfUser.setStatus(0);
            bpmConfUser.setPriority(priority);
            bpmConfUser.setBpmConfNode(bpmConfNode);
            bpmConfUserManager.save(bpmConfUser);
        }

        return priority + 1;
    }
View Full Code Here

Examples of com.mossle.bpm.persistence.manager.BpmTaskConfManager.save()

                String taskAssignee = taskAssignees.get(index++);
                BpmTaskConf bpmTaskConf = new BpmTaskConf();
                bpmTaskConf.setBusinessKey(businessKey);
                bpmTaskConf.setTaskDefinitionKey(taskDefinitionKey);
                bpmTaskConf.setAssignee(taskAssignee);
                bpmTaskConfManager.save(bpmTaskConf);
            }
        }

        return businessKey;
    }
View Full Code Here

Examples of com.mossle.form.keyvalue.KeyValue.save()

            Record record = keyValue.findByRef(processInstanceId);

            if (record != null) {
                record = new RecordBuilder().build(record, STATUS_DRAFT_TASK,
                        getParameters());
                keyValue.save(record);
                businessKey = record.getCode();
            }
        } else if (this.notEmpty(businessKey)) {
            // 如果是流程草稿,直接通过businessKey获得record,更新数据
            Record record = keyValue.findByCode(businessKey);
View Full Code Here

Examples of com.mpatric.mp3agic.Mp3File.save()

                    id3v2Tag.setArtist(song.getArtistName());
                    id3v2Tag.setAlbum(song.getAlbumName());
                    id3v2Tag.setYear(song.getYear() + "");
                    Utils.encodeId(song.getId(), id3v2Tag);
                    mp3File.setId3v2Tag(id3v2Tag);
                    mp3File.save(tempFile2.getAbsolutePath());
                    break;
                } catch (NotSupportedException e) {
                    if (err != null) {
                        e.initCause(err);
                        throw e;
View Full Code Here

Examples of com.mrbussy.ratp.io.PlanningFileHandler.save()

      PlanningFileHandler pfh = new PlanningFileHandler(this);
      // Open a new file output stream
      OutputStream stream = new FileOutputStream(this.filename);

      // Save the current planning to the stream
      pfh.save(stream);

      // Close the current stream
      stream.close();
      // Clean up
      pfh = null;
View Full Code Here

Examples of com.mxgraph.canvas.mxGraphicsCanvas2D.save()

      flipH = false;
      flipV = false;
    }

    // Saves the global state for each cell
    canvas.save();

    // Adds rotation and horizontal/vertical flipping
    rotation = rotation % 360;

    if (rotation != 0 || flipH || flipV)
View Full Code Here

Examples of com.netfever.site.dynovisz.tools.api.XmlStreamer.save()

      streamer = new VideoXmlStreamer();
    } else {
      streamer = new JavaXmlStreamer();     
    }

    streamer.save(o, out);
  }
 
  public static Object load(final InputStream in) {
    final XMLDecoder decoder = new XMLDecoder(in);
   
View Full Code Here

Examples of com.netflix.genie.server.repository.jpa.JobRepository.save()

        final JobServiceJPAImpl impl = new JobServiceJPAImpl(jobRepo, stats, jobManagerFactory);

        final Job job = Mockito.mock(Job.class);
        Mockito.when(job.getId()).thenReturn(JOB_1_ID);
        Mockito.when(jobRepo.exists(JOB_1_ID)).thenReturn(false);
        Mockito.when(jobRepo.save(job)).thenThrow(new RuntimeException("junk"));

        try {
            impl.createJob(job);
            Assert.fail();
        } catch (final GenieException ge) {
View Full Code Here

Examples of com.nevernote.service.NotesService.save()

    Notes theNote = new Notes(noteName);
    if (notesService.findOne(theNote.getFileName()) == null) {
             Set<Users> noteUsers = new HashSet<Users>();
             noteUsers.add(u);
             theNote.setUsers(noteUsers);
             notesService.save(theNote);

             userFromDB.addNote(theNote);
             Users savedUser = usersService.save(userFromDB.getId(), userFromDB);
             session.setAttribute("userSession", savedUser);
    }
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.