Examples of update()


Examples of com.volantis.cache.AsyncResult.update()

        final SystemClock clock = SystemClock.getDefaultInstance();
        ProviderResult result = new ProviderResult(new Integer(1),
            cache.getRootGroup(), true,
            new PipelineCacheState(
                clock.getCurrentTime().addPeriod(Period.inSeconds(2))));
        async.update(result);

        CacheableObjectProvider cacheableObjectProvider =
            new ExpiredObjectsRemainExpiredCacheableObjectProvider(cache.getRootGroup());
        assertNotNull("Integer object is retrievable via the cache",
                cache.retrieve(cacheKey, cacheableObjectProvider));
View Full Code Here

Examples of com.warrows.plugins.TreeSpirit.trees.GreatTree.update()

      return false;
    tree = TreesData.getGreatTree(playerToJoin);
    if (null == tree)
      return false;
    if (!(tree instanceof GreatTreeCoop))
      tree = tree.update();
    ((GreatTreeCoop) tree).add(player);
    player.teleport(tree.getTop());
    return true;
  }
View Full Code Here

Examples of com.xiaoleilu.hutool.db.Session.update()

      // 删,生成SQL为 DELETE FROM `table_name` WHERE `条件1` = ?
      session.del(where);

      // 改,生成SQL为 UPDATE `table_name` SET `字段1` = ?, `字段2` = ? WHERE `条件1` = ?
      session.update(entity, where);

      // 查,生成SQL为 SELECT * FROM `table_name` WHERE WHERE `条件1` = ? 第一个参数为返回的字段列表,如果null则返回所有字段
      List<Entity> entityList = session.find(null, where, new EntityHandler());
      log.info("{}", entityList);

View Full Code Here

Examples of com.xiaoleilu.hutool.db.SqlRunner.update()

      // 删,生成SQL为 DELETE FROM `table_name` WHERE `条件1` = ?
      runner.del(where);

      // 改,生成SQL为 UPDATE `table_name` SET `字段1` = ?, `字段2` = ? WHERE `条件1` = ?
      runner.update(entity, where);

      // 查,生成SQL为 SELECT * FROM `table_name` WHERE WHERE `条件1` = ? 第一个参数为返回的字段列表,如果null则返回所有字段
      List<Entity> entityList = runner.find(null, where, new EntityHandler());
      log.info("{}", entityList);

View Full Code Here

Examples of com.yahoo.ycsb.database.DB.update()

          for (int i = 2; i < tokens.length; i++) {
            String[] nv = tokens[i].split("=");
            values.put(nv[0], nv[1]);
          }

          int ret = db.update(table, tokens[1], values);
          System.out.println("Return code: " + ret);
        }
      } else if (tokens[0].compareTo("insert") == 0) {
        if (tokens.length < 3) {
          System.out
View Full Code Here

Examples of com.yammer.metrics.core.Histogram.update()

              RESPONSE_LOG
                  .info(requestId + "\t" + connectionString + "\tSUCCESS\t" + name + "\t" + ms + "\t" + argsStr);
            }
          }
          Histogram histogram = histogramMap.get(name);
          histogram.update((end - start) / 1000);
        }
      }

      private String getArgsStr(Object[] args, String name, LoggerArgsState loggerArgsState) {
        String argsStr;
View Full Code Here

Examples of com.yammer.metrics.core.Timer.update()

        AWSCredentials creds = new PropertiesCredentials(is);

        Timer timer = Metrics.newTimer(CloudWatchReporterTest.class, "TestTimer", TimeUnit.MINUTES, TimeUnit.MINUTES);
        for (int i = 0; i < 100; i++) {
            for (int j = 0; j < 50; j++) {
                timer.update(i, TimeUnit.MINUTES);
            }
        }
        Metrics.newGauge(new MetricName("test", "limits", "NegSmall"), new Gauge<Double>() {
            @Override
            public Double value() {
View Full Code Here

Examples of com.yammer.metrics.stats.ExponentiallyDecayingSample.update()

  public void testBasic() {
      final ExponentiallyDecayingSample sample =
          new ExponentiallyDecayingSample(100, 0.99);
     
      for (int i = 0; i < 1000; i++) {
          sample.update(i);
      }
      Assert.assertEquals(100, sample.size());
     
      final Snapshot snapshot = sample.getSnapshot();
      Assert.assertEquals(100, snapshot.size());
View Full Code Here

Examples of common.db.QueryRunner.update()

  {
    QueryRunner queryRunner = new QueryRunner(dbParam);

    for(Integer i : indexDelete)
    {
      queryRunner.update(sqlRes.query("deleteMultyByNumber"), i);
    }

  }

  public void testMultyInsert()
View Full Code Here

Examples of controller.BookManager.update()

    book = linkController.add(book);
    genre = linkController.add(genre);
   
    // update the title of the book to correct spelling error
    book.setTitle("Gone with the wind");   
    book = linkController.update(book);

    genre.setGenre("Classic");
    genre = linkController.update(genre);
   
   
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.