Examples of save()


Examples of co.nubetech.crux.dao.AnalysisDAO.save()

    analysis.setText("{foo:\"ab\",boo:12}");
   
    AnalysisDAO mockedAnalysisDAO = mock(AnalysisDAO.class);
    AnalysisAction analysisAction = new AnalysisAction();
    analysisAction.setAnalysisDAO(mockedAnalysisDAO);
    when(mockedAnalysisDAO.save(analysis)).thenReturn(1212l);
   
    String successString = analysisAction.saveAnalysis();
   
    assertEquals(analysisAction.getAnalysisDAO().save(analysis), 1212l);
    assertEquals(successString, "success");
View Full Code Here

Examples of co.nubetech.crux.pool.HBaseConnectionPool.save()

        .getServletContext();
    HBaseConnectionPool pool = (HBaseConnectionPool) servletContext
        .getAttribute(CruxConstants.HBASE_POOL);

    try {
      pool.save(connection);
      // servletContext.setAttribute(CruxConstants.HBASE_POOL, pool);
      HBaseFacade hbaseFacade = getHBaseFacade();
      boolean isValidConnection = hbaseFacade
          .isValidConnection(connection);
      logger.debug("isValidConnection : " + isValidConnection);
View Full Code Here

Examples of code.satyagraha.gfm.viewer.bots.EditorBot.save()

        ProjectFileBot fileBot = project.newFile("file1.md");
        EditorBot editorBot = EditorBot.findByName("file1.md");

        String textMd = "sample text, timestamp: " + System.currentTimeMillis() + ".";
        editorBot.typeText(textMd + "\r");
        editorBot.save();
        editorBot.close();

        File fileMd = fileBot.toFile();
        File fileHt = new File(fileMd.getParentFile(), ".file1.md.html");
        assertThat(fileHt.exists(), is(false));
View Full Code Here

Examples of com.alibaba.dubbo.examples.validation.api.ValidationService.save()

        parameter.setName("liangfei");
        parameter.setEmail("liangfei@liang.fei");
        parameter.setAge(50);
        parameter.setLoginDate(new Date(System.currentTimeMillis() - 1000000));
        parameter.setExpiryDate(new Date(System.currentTimeMillis() + 1000000));
        validationService.save(parameter);
        System.out.println("Validation Save OK");
       
        // Save Error
        try {
            parameter = new ValidationParameter();
View Full Code Here

Examples of com.amazonaws.services.dynamodb.datamodeling.DynamoDBMapper.save()

        DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
        if (rangeKey != null)
          mapper.load(persistentClass, hashKey.toString(), rangeKey.toString());
        else
          mapper.load(persistentClass, hashKey.toString());
          mapper.save(obj);
      }
      else
        throw new GoraException("Error while retrieving keys from object: " + obj.toString());
    }catch(NullPointerException npe){
      LOG.error("Error while putting an item. " + npe.toString());
View Full Code Here

Examples of com.anthonyeden.lib.config.Dom4jConfiguration.save()

    // save repository entry properties
    FileOutputStream fOut = null;
    try {
      fOut = new FileOutputStream(new File(baseDirectory, PROPERTIES_FILE));
      root.save(fOut);
    } catch (IOException ioe) {
      throw new OLATRuntimeException("Error writing repo properties.", ioe);
    } catch (ConfigurationException cfe) {
      throw new OLATRuntimeException("Error writing repo properties.", cfe);
    } finally {
View Full Code Here

Examples of com.appsec.wsitbt.core.wsit.WsitDocument.save()

            wsitDoc.setBindingPolicy(bindingpolicy);
            wsitDoc.setInputPolicy(inputpolicy);
            wsitDoc.setOutputPolicy(outputpolicy);
            wsitDoc.setFaultPolicy(faultpolicy);

            wsitDoc.save(output);

            if (this.updatewsdl)
            {
                final File wsdlout;
                if (this.wsdloutdir != null)
View Full Code Here

Examples of com.apress.prospring.ch10.data.TestDao.save()

    System.out.println("Inserting new Test record");
    Test test = new Test();
    test.setName("new one");
    test.setRunDate(today);
    testDao.save(test);
   
    System.out.println("Test inserted " + test);
   
    List tests = testDao.getAll();
    for (Iterator i = tests.iterator(); i.hasNext();) {
View Full Code Here

Examples of com.apress.prospring.ch9.data.TestDao.save()

    Test test1, test2;
    test1 = testDao.getById(1);
    test2 = testDao.getById(1);
    test1.setName("new Name");
    test2.setName("other name");
    testDao.save(test1);
    testDao.save(test2);
  }
 
  public void customer() {
    CustomerDao customerDao = (CustomerDao)context.getBean("customerDao");
View Full Code Here

Examples of com.apress.prospring3.springblog.service.EntryService.save()

    entry.setCreatedBy("clarence");
    DateTime currentDateTime = new DateTime();
    entry.setCreatedDate(currentDateTime);
    entry.setLastModifiedBy("clarence");
    entry.setLastModifiedDate(currentDateTime);
    entryService.save(entry);
    System.out.println("New entry insert successfully");
   
        entries = entryService.findByCategoryId("Spring");
   
    for (Entry entryTemp: entries) {
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.