Examples of save()


Examples of com.madgnome.jira.plugins.jirachievements.data.ao.VersionStatistic.save()

    VersionStatistic versionStatistic = null;
    if (statisticRef != null)
    {
      versionStatistic = getOrCreate(projectKey, version, statisticRef, userWrapper);
      versionStatistic.setValue(value);
      versionStatistic.save();
    }

    return versionStatistic;
  }
View Full Code Here

Examples of com.massivecraft.mcore.store.Driver.save()

      Collection<String> ids = fromDriver.getIds(fromColl);
      msg("<i>Now copying collection <h>%d/%d %s <i>with <h>%d <i>documents.", countCollCurrent, countCollTotal, collname, ids.size());
      for (String id : ids)
      {
        Entry<JsonElement, Long> data = fromDriver.load(fromColl, id);
        toDriver.save(toColl, id, data.getKey());
      }
    }
    long after = System.currentTimeMillis();
    long duration = after - before;
    msg("<g>The copy is now complete. <i>It took <h>%dms<i>.", duration);
View Full Code Here

Examples of com.massivecraft.mcore.xlib.mongodb.DBCollection.save()

    BasicDBObject dbo = GsonMongoConverter.gson2MongoObject(data);
    Long mtime = System.currentTimeMillis();
    dbo.put(MTIME_FIELD, mtime);
    dbo.put(ID_FIELD, id);
   
    dbcoll.save(dbo);

    return mtime;
  }

  @Override
View Full Code Here

Examples of com.microsoft.schemas.office.x2006.encryption.EncryptionDocument.save()

        // setting standalone doesn't work with xmlbeans-2.3
        xo.setSaveNoXmlDecl();
       
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        bos.write("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n".getBytes("UTF-8"));
        ed.save(bos, xo);

        final byte buf[] = new byte[5000];       
        LittleEndianByteArrayOutputStream leos = new LittleEndianByteArrayOutputStream(buf, 0);
        EncryptionInfo info = builder.getInfo();
View Full Code Here

Examples of com.microsoft.tfs.core.clients.workitem.WorkItem.save()

            item.getFields().getField("Priority").setValue(metadata.getPriority());

            String itemId = null;

            if (checkItemValues(item)) {
                item.save();
                itemId = String.valueOf(item.getID());
            } else {
                LOG.error("Failed to create issue because one or more fields were invalid. " +
                        "Check the above logs for more details.");
            }
View Full Code Here

Examples of com.mongodb.DBCollection.save()

    // Given
    DBCollection col = db.createCollection("testCollection", new BasicDBObject());

    // When
    col.save(new BasicDBObject("testDoc", new Date()));

    // Then
    assertThat(col.getCount()).isEqualTo(1L);
  }
View Full Code Here

Examples of com.mongodb.gridfs.GridFSInputFile.save()

            is.close();
            return md5;
        }

        GridFSInputFile gridFSInputFile = gridFS.createFile(bis, true);
        gridFSInputFile.save();
        return gridFSInputFile.getMD5();
    }

    private static String calculateMd5(BufferedInputStream bis) throws IOException {
        bis.mark(Integer.MAX_VALUE);
View Full Code Here

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

        if (bpmConfBase == null) {
            bpmConfBase = new BpmConfBase();
            bpmConfBase.setProcessDefinitionId(processDefinitionId);
            bpmConfBase.setProcessDefinitionKey(processDefinitionKey);
            bpmConfBase.setProcessDefinitionVersion(processDefinitionVersion);
            bpmConfBaseManager.save(bpmConfBase);
        } else if (bpmConfBase.getProcessDefinitionId() == null) {
            bpmConfBase.setProcessDefinitionId(processDefinitionId);
            bpmConfBaseManager.save(bpmConfBase);
        }
View Full Code Here

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

            bpmConfForm.setType(0);
            bpmConfForm.setOriginValue(userTask.getFormKey());
            bpmConfForm.setOriginType(0);
            bpmConfForm.setStatus(0);
            bpmConfForm.setBpmConfNode(bpmConfNode);
            bpmConfFormManager.save(bpmConfForm);
        }
    }

    public BpmConfBaseManager getBpmConfBaseManager() {
        return ApplicationContextHelper.getBean(BpmConfBaseManager.class);
View Full Code Here

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

            if (bpmConfListener == null) {
                bpmConfListener = new BpmConfListener();
                bpmConfListener.setValue(value);
                bpmConfListener.setType(type);
                bpmConfListenerManager.save(bpmConfListener);
            }
        }
    }

    /**
 
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.