Examples of create()


Examples of com.nordija.midtier.utilitybeans.sequence.sessionbean.SequenceServiceHome.create()

  {
    try {
      // TODO: Reuse at central point
      Context ctx = new InitialContext();
      SequenceServiceHome home = (SequenceServiceHome)ctx.lookup("nordija.portal.sequence");
      SequenceService seq = home.create();
      Range range = seq.getSequenceRange("Layout",true,1);

      // Init values
      this.id = range.getNextUniqueNumber();
      this.name = "No name";

Examples of com.onpositive.commons.ui.dialogs.InputElementDialog.create()

        pe.setLayout(new FillLayout());
        OneLineTextElement<String> keyKind = new OneLineTextElement<String>(
            kind);
        pe.add(keyKind);
        bb.add(pe);
        dlg.create();

        dlg.setMessage("Please specify kind for key.");

        dlg.open();
      }

Examples of com.onpositive.commons.ui.dialogs.TitledDialog.create()

    Field[] full = getAllFields();
    bnd.switchParsingMode(true);
    EditorUtility.createBindingsWithButton(e, editor, bnd, full, facade,
        true);
    DisposeBindingListener.linkBindingLifeCycle(bnd, editor);
    dlg.create();
    int ch = dlg.open();

    if (ch == Window.OK) {
      return true;
    }

Examples of com.opengamma.engine.marketdata.MarketDataProviderFactory.create()

  public MarketDataProvider resolve(UserPrincipal user, MarketDataSpecification marketDataSpec) {
    MarketDataProviderFactory providerFactory = _providerFactoryMap.get(marketDataSpec.getClass());
    if (providerFactory == null) {
      return null;
    }
    return providerFactory.create(user, marketDataSpec);
  }

}

Examples of com.opengamma.engine.marketdata.manipulator.ScenarioDefinitionFactory.create()

          ScenarioParameters scenarioParameters = configSource.getConfig(ScenarioParameters.class, scenarioParametersId);
          parameters = scenarioParameters.getParameters();
        } else {
          parameters = null;
        }
        ScenarioDefinition scenarioDefinition = scenarioDefinitionFactory.create(parameters);
        specificSelectors.put(calcConfig.getName(), new HashMap<>(scenarioDefinition.getDefinitionMap()));
      } else {
        // Ensure we have an entry for each graph, even if selectors are empty
        specificSelectors.put(calcConfig.getName(), ImmutableMap.<DistinctMarketDataSelector, FunctionParameters>of());
      }

Examples of com.openkm.ws.client.OKMDocument.create()

            bpDocument.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMDocument");

            token = okmAuth.login(username, password);

            doc.setPath(document.getPath());
            okmDocument.create(token, doc, FileUtil.readFile(document.getLocalFilename()));

            // Logout OpenKM
            okmAuth.logout(token);
            token = "";
        } catch (Exception ex) {

Examples of com.opensymphony.xwork2.inject.ContainerBuilder.create()

        ActionContext oldContext = ActionContext.getContext();
        try {
            // Set the bootstrap container for the purposes of factory creation

            setContext(bootstrap);
            container = builder.create(false);
            setContext(container);
            objectFactory = container.getInstance(ObjectFactory.class);

            // Process the configuration providers first
            for (final ContainerProvider containerProvider : providers)

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocument.create()

          db = new ODatabaseDocumentTx(stg.path);

          if (db.exists())
            db.open(stg.userName, stg.userPassword);
          else
            db.create();

          OLogManager.instance().info(this, "-> Loaded " + type + " database '" + stg.name + "'");
        } catch (Exception e) {
          OLogManager.instance().error(this, "-> Can't load " + type + " database '" + stg.name + "': " + e);

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.create()

    System.out.println("Using db = local:" + dbPath);
    File dbDir = new File(dbPath);
    System.out.println("Clean db directory for test...");
    delTree(dbDir);
    ODatabaseDocumentTx db = new ODatabaseDocumentTx("local:" + dbPath);
    db.create();
    db.close();

    System.out.println("Reopen it...");
    // Something was added to dbPath so the legacy situation was simulated
    dbPath += "/foo";

Examples of com.orientechnologies.orient.core.db.graph.OGraphDatabase.create()

    OGraphDatabase db = new OGraphDatabase("local:C:/temp/databases/gremlin");
    if (db.exists())
      db.open("admin", "admin");
    else
      db.create();

    // ODocument vertex1 = (ODocument) db.createVertex().field("label", "car").save();
    // ODocument vertex2 = (ODocument) db.createVertex().field("label", "pilot").save();
    // ODocument edge = (ODocument) db.createEdge(vertex1, vertex2).field("label", "drives").save();
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.