Examples of update()


Examples of com.darkhonor.rage.libs.dataaccess.CategoryDAO.update()

                        qcat.setId(newCatId);
                    }
                    //tx.begin();
                    //em.persist(qcat);
                    //tx.commit();
                    qcat = catDAO.update(qcat);
                   
                    query = em.createQuery("SELECT q FROM Question q WHERE "
                            + "q.name = :name AND q.category = :cat");
                    query.setParameter("name", qname);
                    query.setParameter("cat", qcat);
View Full Code Here

Examples of com.darkhonor.rage.libs.dataaccess.GradedEventDAO.update()

                            "Error", JOptionPane.ERROR_MESSAGE);
                    LOGGER.warn("Question not removed.");
                }
                //tx.begin();
                //gevent = em.merge(gevent);
                gevent = gradedEventDAO.update(gevent);
                //tx.commit();
                modGradedEvents.update(gevent);
            }
            gradedEventDAO.closeConnection();
            //em.close();
View Full Code Here

Examples of com.darkhonor.rage.libs.dataaccess.TestCaseDAO.update()

                                {
                                    try
                                    {
                                        TestCase dbTestCase = testCaseDAO.find(tc.getId());
                                        // TestCase exists in the database, update
                                        tc = testCaseDAO.update(tc);
                                    } catch (IllegalArgumentException exTestCase)
                                    {
                                        // TestCase not in data source, just save
                                        Long newId = testCaseDAO.create(tc);
                                    }
View Full Code Here

Examples of com.defaultcompany.external.repository.ApprovalLineDAO.update()

//      tempPd.registerToProcessDefinition(false, false);
      pm.changeProcessDefinition(instanceId, tempPd);
      // 결재선 다이나믹 체인지 End
     
      instance.setProperty(approvalLineAct.getTracingTag(), ExternalApprovalLineActivity.KEY_APPR_KEY, psMsg.getApprovalKey());
      approvalLineDAO.update(al);
      approverDAO.update(approverList);
     
      if (psMsg.isFirstTaskCompleted()) {
        pm.completeWorkitem(instanceId, draftAct.getTracingTag(), null, new org.uengine.kernel.ResultPayload());
      }
View Full Code Here

Examples of com.defaultcompany.external.repository.ApproverDAO.update()

      pm.changeProcessDefinition(instanceId, tempPd);
      // 결재선 다이나믹 체인지 End
     
      instance.setProperty(approvalLineAct.getTracingTag(), ExternalApprovalLineActivity.KEY_APPR_KEY, psMsg.getApprovalKey());
      approvalLineDAO.update(al);
      approverDAO.update(approverList);
     
      if (psMsg.isFirstTaskCompleted()) {
        pm.completeWorkitem(instanceId, draftAct.getTracingTag(), null, new org.uengine.kernel.ResultPayload());
      }
     
View Full Code Here

Examples of com.dotcms.repackage.org.bouncycastle.crypto.digests.SHA1Digest.update()

  }
 
  private static String hashPath(String path) {
    byte[] data=path.getBytes();
    SHA1Digest digest=new SHA1Digest();
    digest.update(data, 0, data.length);
    byte[] result=new byte[digest.getDigestSize()];
    digest.doFinal(result, 0);
    String ret=null;
    ret=new String(Base64.encode(result));   
    return ret;
View Full Code Here

Examples of com.drakulo.games.ais.ui.component.ProgressBar.update()

    // Resource progress bars updates
    Resource[] resources = Resource.values();
    for (Resource r : resources) {
      ProgressBar pb = this.resourceBars.get(r);
      pb.update(input);
    }

    // Handling research buttons
    ResearchAction action = GameData.getSelectedColony().getResearch();
    if (action == null) {
View Full Code Here

Examples of com.dubture.composer.core.buildpath.BuildPathManager.update()

        projectPreferences.flush();
       
        // update buildpath
        ComposerProject composerProject = new ComposerProject(scriptProject.getProject());
        BuildPathManager bpm = new BuildPathManager(composerProject);
        bpm.update();
      } catch (CoreException e) {
        e.printStackTrace();
      } catch (BackingStoreException e) {
        e.printStackTrace();
      }
View Full Code Here

Examples of com.ebspos.model.Employee.update()

  public void save() {
    try {
      Employee m = getModel(Employee.class);
      if (m.getLong("id") != null) {
        m.set("upd_time",new Timestamp((new Date()).getTime()));
        m.update();
      } else {
        m.set("pwd",MD5.getMD5ofStr("123456"));
        m.set("upd_time",new Timestamp((new Date()).getTime()));
        m.save();
      }
View Full Code Here

Examples of com.ebspos.model.Menu.update()

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