Examples of update()


Examples of com.iCo6.IO.mini.Mini.update()

            entry.setValue("to_balance", data.toBalance);
            entry.setValue("gain", data.gain);
            entry.setValue("loss", data.loss);
            entry.setValue("set", data.set);
            database.addIndex(entry);
            database.update();

            return;
        }
    }
}
View Full Code Here

Examples of com.iCo6.util.org.apache.commons.dbutils.QueryRunner.update()

                        try {
                            QueryRunner run = new QueryRunner();
                            Connection c = iConomy.Database.getConnection();

                            try{
                                run.update(c, SQL);
                            } catch (SQLException ex) {
                                System.out.println("[iConomy] Error creating database: " + ex);
                            } finally {
                                DbUtils.close(c);
                            }
View Full Code Here

Examples of com.ibatis.sqlmap.client.SqlMapClient.update()

        try {
            if (useTrans) {
                client.startTransaction(isolation);
            }
            for (String statement : statements) {
                client.update(statement.trim(), data);
            }
            if (useTrans) {
                client.commitTransaction();
            }
        } finally {
View Full Code Here

Examples of com.ibatis.sqlmap.client.SqlMapSession.update()

      // Execute given callback...
      try {
        session.startBatch();
        for (T item : items) {
          session.update(statementId, item);
        }
        try {
          return session.executeBatchDetailed();
        } catch (BatchException e) {
          throw e.getBatchUpdateException();
View Full Code Here

Examples of com.ibatis.sqlmap.engine.cache.CacheKey.update()

  public CacheKey getCacheKey(RequestScope request, Object parameterObject) {
    Sql sql = request.getSql();
    ParameterMap pmap = sql.getParameterMap(request, parameterObject);
    CacheKey cacheKey = pmap.getCacheKey(request, parameterObject);
    cacheKey.update(id);
    cacheKey.update(baseCacheKey);
    cacheKey.update(sql.getSql(request, parameterObject)); //Fixes bug 953001
    return cacheKey;
  }
View Full Code Here

Examples of com.inadco.hbl.math.aggregators.OnlineCannyAvgSummarizer.update()

        Assert.assertTrue(Math.abs(sum.getValue() - 1d) < PREC);
        Assert.assertTrue(Math.abs(sum.getValueNow(5d) - 1d) < PREC);

        sum.update(4, 2);
        sum2.update(4, 2);

        Assert.assertTrue(Math.abs(sum.getValue() - sum.getValueNow(5d)) < PREC);

        OnlineCannyAvgSummarizer combined = IOUtil.tryClone(sum1);
        combined.combine(sum2);
View Full Code Here

Examples of com.inadco.hbl.math.aggregators.OnlineCannyRateSummarizer.update()

        sum1.update(1, 1);
        sum.update(2, 2);
        sum1.update(2, 2);

        sum.update(4, 4);
        sum2.update(4, 4);
//        sum1.update(0, 4); // connect sum1 to sum2 interval -- needed for
                           // complement to work.. well, at least one of the scenarios.

        sum.update(5, 5);
        sum2.update(5, 5);
View Full Code Here

Examples of com.inadco.hbl.math.aggregators.OnlineMeanSummarizer.update()

    public void OnlineMeanSummarizerTest() throws Exception {
        Random rnd = new Random();
        OnlineMeanSummarizer oms = new OnlineMeanSummarizer();

        for (int i = 0; i < 10000; i++)
            oms.update(rnd.nextGaussian() * 5 + 1); // should generate mean 1,
                                                    // variance 25 or so
        Assert.assertTrue(Math.abs(oms.getMean() - 1) < 0.1);
        Assert.assertTrue(Math.sqrt(oms.getVariance()) - 25 < 5);

    }
View Full Code Here

Examples of com.inmethod.grid.datagrid.DataGrid.update()

                        dataSource.removeEntry(entry);
                    }
                    grid.resetSelectedItems();
                    dataSource.storeToPageParameters();
                    grid.markAllItemsDirty();
                    grid.update();
                } else {
                    target.appendJavaScript("alert('" + getString("noItemsSelected") + "');");
                }
            }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.AnAction.update()

        final AnAction action = ActionManager.getInstance().getAction(actionId);
        final AnActionEvent event = new AnActionEvent(null, DataManager.getInstance().getDataContext(this), ActionPlaces.UNKNOWN,
                action.getTemplatePresentation(), ActionManager.getInstance(),
                0);
        action.beforeActionPerformedUpdate(event);
        action.update(event);

        if (event.getPresentation().isEnabled() && event.getPresentation().isVisible()) {
            action.actionPerformed(event);
        }
    }
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.