Examples of update()


Examples of com.opengamma.master.portfolio.PortfolioMaster.update()

        final UniqueId previousId = result.getDocuments().get(0).getUniqueId();
        s_logger.info("Updating portfolio {}", previousId);
        portfolio.setUniqueId(previousId);
        final PortfolioDocument document = new PortfolioDocument(portfolio);
        document.setUniqueId(previousId);
        portfolioMaster.update(document);
        break;
      default:
        throw new OpenGammaRuntimeException("Multiple portfolios matching " + req);
    }
  }
View Full Code Here

Examples of com.opengamma.master.security.SecurityMaster.update()

            //snapshot.getGlobalValues().getValue()
            //cdsArgs.add(timeSeriesId);
            //loadTimeSeries(newArrayList(timeSeriesId));
            //LocalDate tradeDate = functional(position.getTrades()).first().getTradeDate();
            //Double strike = getFixedRate(random, tradeDate, timeSeriesId);
            securityMaster.update(new SecurityDocument(cdsOption));
          } catch (Exception e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
          }
        }
      }
View Full Code Here

Examples of com.openshift.client.IEnvironmentVariable.update()

    if (!hasEnvironmentVariable(name)) {
      throw new OpenShiftException("Environment variable with name \"{0}\" does not exist.", name);
    }

    IEnvironmentVariable environmentVariable = getEnvironmentVariable(name);
    environmentVariable.update(value);

    environmentVariablesMap.put(environmentVariable.getName(), environmentVariable);

    return environmentVariable;
  }
View Full Code Here

Examples of com.oxidevelopment.bleakengine.scene.Scene.update()

    initGL();
   
    while (!Display.isCloseRequested()) {
      GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
      Scene scene = SceneManager.getScene();
      scene.update();
      scene.draw();
    }
   
    DisplayManager.destroy();
  }
View Full Code Here

Examples of com.pahimar.repackage.cofh.lib.gui.element.ElementBase.update()

    protected final void updateElements() {

        for (int i = elements.size(); i-- > 0; ) {
            ElementBase c = elements.get(i);
            if (c.isVisible() && c.isEnabled()) {
                c.update(mouseX, mouseY);
            }
        }
    }

    protected void updateElementInformation() {
View Full Code Here

Examples of com.pahimar.repackage.cofh.lib.gui.element.TabBase.update()

        int yPosRight = 4;
        int yPosLeft = 4;

        for (int i = 0; i < tabs.size(); i++) {
            TabBase tab = tabs.get(i);
            tab.update();
            if (!tab.isVisible()) {
                continue;
            }
            // TODO: convert these over to foreground/background (maybe logic for top/bottom tabs?)
            if (tab.side == TabBase.LEFT) {
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.update()

    UUID key = (UUID)om.insert("testtype", testObject);

    Map<String, Object> updateObj = Maps.newTreeMap();
    updateObj.put("foreignid", Long.valueOf(1));
    om.update("testtype",key, updateObj);

    updateObj = Maps.newTreeMap();
    updateObj.put("foreignid", Long.valueOf(2));
    om.update("testtype",key, updateObj);
View Full Code Here

Examples of com.pearson.entech.elasticsearch.search.facet.approx.date.internal.DistinctCountPayload.update()

                final DistinctCountPayload count = getSafely(_counts, time, unsafeSlice);
                while(distinctIter.hasNext()) {
                    final BytesRef unsafeTerm = distinctIter.next();
                    // Unsafe because the BytesRef may be changed if we continue reading,
                    // but the counter only needs to read it once immediately, so that's OK
                    count.update(unsafeTerm);
                }
            }
        }
    }
View Full Code Here

Examples of com.perforce.p4java.impl.generic.core.Changelist.update()

            ChangelistSummary summary = new ChangelistSummary(IChangelist.UNKNOWN, client.getName(),
                    server.getUserName(), ChangelistStatus.NEW, new Date(),
                    "Artifactory release plugin", false);
            IChangelist newChangeList = new Changelist(summary, server, false);
            newChangeList = client.createChangelist(newChangeList);
            newChangeList.update();
            return newChangeList.getId();
        } catch (P4JavaException e) {
            throw new IOException("Perforce execution failed: '" + e.getMessage() + "'", e);
        }
    }
View Full Code Here

Examples of com.ponysdk.jetty.test.bench.mock.UIMock.update()

                    uiObjectByID.put(pid, new UIMockScheduler(pid));
                }
            } else if (TYPE.KEY_.UPDATE.equals(type)) {
                final Long pid = instruction.getLong(PROPERTY.OBJECT_ID);
                final UIMock uiMock = uiObjectByID.get(pid);
                if (uiMock != null) uiMock.update(this, instruction);

                if (instruction.has(PROPERTY.ENSURE_DEBUG_ID)) {
                    final String did = instruction.getString(PROPERTY.ENSURE_DEBUG_ID);

                    final UI.Object o = new UI.Object();
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.