Examples of createObject()


Examples of com.caucho.es.Global.createObject()

    Global global = Global.getGlobalProto();
    ESBase obj;
    if (length > 0)
      obj = call.getArg(0, length);
    else
      obj = global.createObject();

    int nColumns = md.getColumnCount();
    for (int i = 0; i < nColumns; i++) {
      String name = md.getColumnName(i + 1);
      Object value = get(rs, i + 1);
View Full Code Here

Examples of com.dci.intellij.dbn.object.factory.DatabaseObjectFactory.createObject()

    public void doOKAction() {
        Project project = inputForm.getConnectionHandler().getProject();
        DatabaseObjectFactory factory = DatabaseObjectFactory.getInstance(project);
        ObjectFactoryInput factoryInput = inputForm.createFactoryInput(null);
        if (factory.createObject(factoryInput)) {
            super.doOKAction();
        }
    }

    public void doCancelAction() {
View Full Code Here

Examples of com.opengamma.engine.view.ViewProcessorFactoryBean.createObject()

        new DiscardingInvocationStatisticsGatherer(), new CalculationNodeLogEventListener(threadLocalLogListener));
    final LocalNodeJobInvoker jobInvoker = new LocalNodeJobInvoker(localCalcNode);
    vpFactBean.setComputationJobDispatcher(new JobDispatcher(jobInvoker));
    vpFactBean.setFunctionResolver(generateFunctionResolver(compiledFunctions));
    vpFactBean.setViewResultListenerFactory(_viewResultListenerFactory);
    _viewProcessor = (ViewProcessorImpl) vpFactBean.createObject();
  }

  public CompiledViewDefinitionWithGraphsImpl compileViewDefinition(final Instant valuationTime, final VersionCorrection versionCorrection) {
    if (getViewProcessor() == null) {
      throw new IllegalStateException(ViewProcessorTestEnvironment.class.getName() + " has not been initialised");
View Full Code Here

Examples of com.opengamma.util.db.DbConnectorFactoryBean.createObject()

          factory.setDialect(dbDialect);
          factory.setDataSource(getDbTool().getDataSource());
          factory.setTransactionIsolationLevelName("ISOLATION_READ_COMMITTED");
          factory.setTransactionPropagationBehaviorName("PROPAGATION_REQUIRED");
          initDbConnectorFactory(factory);
          connector = factory.createObject();
          s_connectors.put(key, connector);
        }
      }
    }
    return connector;
View Full Code Here

Examples of com.opengamma.util.mongo.MongoConnectorFactoryBean.createObject()

    String collectionSuffix = "_" + testName;
    if (makeUnique) {
      collectionSuffix += "_" + System.currentTimeMillis();
    }
    factory.setCollectionSuffix(collectionSuffix);
    return factory.createObject();
  }

}
View Full Code Here

Examples of com.psddev.dari.db.ObjectType.createObject()

                                        @SuppressWarnings("unchecked")
                                        Map<String, Object> objectMap = (Map<String, Object>) ObjectUtils.fromJson(objectString.trim());
                                        ObjectType type = ObjectType.getInstance(ObjectUtils.to(UUID.class, objectMap.remove("_typeId")));

                                        if (type != null) {
                                            Object object = type.createObject(ObjectUtils.to(UUID.class, objectMap.remove("_id")));
                                            State objectState = State.getInstance(object);

                                            objectState.setValues(objectMap);
                                            substitutions.put(objectState.getId(), object);
                                        }
View Full Code Here

Examples of com.simpletwitter.common.DatabaseManager.createObject()

  }

  private static TwitterUser createNewUser(TwitterUser tuser) {
    DatabaseManager da = DatabaseManager.getInstance();
    tuser.setDateCreated(new Date());
    TwitterUser createObject = da.createObject(tuser);
    return createObject;
  }
}
View Full Code Here

Examples of com.sun.mfwk.MfObjectFactory.createObject()

        String tokenizedON =
            ObjectNameHelper.tokenizeON(asON, objectName, _context.getTokens());

        DefaultDelegate delegate = null;
        if (!objectFactory.isObjectCreated(tokenizedON)) {
            sourceMbean = objectFactory.createObject(tokenizedON);

            // create delegate
            delegate = (DefaultDelegate)
                delegateFactory.createDelegate(mbs, sourceMbean, asON);
View Full Code Here

Examples of de.mhus.lib.MActivator.createObject()

      throws CaoException {
    try {
      MActivator a = activator;
      if (a==null) a = MSingleton.instance().getActivator();
      String appClass = config.getExtracted("application_class");
      CaoApplication app = (CaoApplication) a.createObject(appClass,new Class[] {CaoConnection.class,IConfig.class}, new Object[] {con,config2});
      return app;
    } catch(Throwable t) {
      throw new CaoException(t);
    }
  }
View Full Code Here

Examples of de.mhus.lib.adb.DbManager.createObject()

      DbManager manager = new DbManager(pool, schema);

      // create persons
      Person p = new Person();
      p.setName("Klaus Mustermann");
      manager.createObject(p);
      UUID p1 = p.getId();
     
      p.setId(null);
      p.setName("Alex Admin");
      manager.createObject(p);
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.