Examples of addParameter()


Examples of org.exist.scheduler.JobConfig.addParameter()

                final Map<String, List<? extends Object>> params = ParametersExtractor.extract(nlParam);
               
                for(final Entry<String, List<? extends Object>> param : params.entrySet()) {
                    final List<? extends Object> values = param.getValue();
                    if(values != null && values.size() > 0) {
                        jobConfig.addParameter(param.getKey(), values.get(0).toString());
                       
                        if(values.size() > 1) {
                            LOG.warn("Parameter '" + param.getKey() + "' for job '" + jobName + "' has more than one value, ignoring further values.");
                        }
                    }

Examples of org.exolab.castor.persist.spi.QueryExpression.addParameter()

            SQLColumnInfo[] ids = _engine.getColumnInfoForIdentities();
            QueryExpression query = _factory.getQueryExpression();

            // initalize lookup query
            for (int i = 0; i < ids.length; i++) {
                query.addParameter(_mapTo, ids[i].getName(), QueryExpression.OP_EQUALS);
            }
            _statement = query.getStatement(true);
      } catch (QueryException except) {
          LOG.warn("Problem building SQL", except);
          throw new MappingException(except);

Examples of org.exolab.javasource.JConstructor.addParameter()

        JSourceCode jsc = null;

        //-- modify constructor
        JConstructor constructor = jClass.getConstructor(0);
        constructor.getModifiers().makePrivate();
        constructor.addParameter(new JParameter(JType.INT, "type"));
        constructor.addParameter(new JParameter(SGTypes.STRING, "value"));
        jsc = constructor.getSourceCode();
        jsc.add("this.type = type;");
        jsc.add("this.stringValue = value;");

Examples of org.exolab.javasource.JMethod.addParameter()

        JMethod method = new JMethod(fieldInfo.getWriteMethodName());
        method.addException(SGTypes.INDEX_OUT_OF_BOUNDS_EXCEPTION,
                            "if the index given is outside the bounds of the collection");
        final JParameter parameter = new JParameter(fieldInfo.getContentType().getJType(),
                fieldInfo.getContentName());
        method.addParameter(parameter);

        JSourceCode sourceCode = method.getSourceCode();
        this.addMaxSizeCheck(fieldInfo, method.getName(), sourceCode);

        sourceCode.add("this.");

Examples of org.exoplatform.container.xml.InitParams.addParameter()

      ConfigurationManagerImpl cm = new ConfigurationManagerImpl();
      InitParams params = new InitParams();
      ValueParam param = new ValueParam();
      param.setName("locale.config.file");
      param.setValue("classpath:/resources/locales-config.xml");
      params.addParameter(param);

      //
      LocaleConfigService service = new LocaleConfigServiceImpl(params, cm);
      return service;
   }

Examples of org.exoplatform.management.spi.ManagedMethodMetaData.addParameter()

               else if (parameterAnnotation instanceof ManagedDescription)
               {
                  mmpMD.setDescription(((ManagedDescription) parameterAnnotation).value());
               }
            }
            managedMethod.addParameter(mmpMD);
         }

         //
         bilto.put(method, managedMethod);
      }

Examples of org.exoplatform.services.jcr.config.QueryHandlerEntry.addParameter()

      QueryHandlerEntry queryHandler = workspaceEntry.getQueryHandler();

      if (helper.ispnCacheEnabled())
      {
         // Use Infinispan components for core.ispn project
         queryHandler.addParameter(new SimpleParameterEntry("changesfilter-class",
            "org.exoplatform.services.jcr.impl.core.query.ispn.ISPNIndexChangesFilter"));
         queryHandler.addParameter(new SimpleParameterEntry("infinispan-configuration",
            "conf/standalone/cluster/test-infinispan-indexer.xml"));
         queryHandler.addParameter(new SimpleParameterEntry("jgroups-configuration",
            "jar:/conf/standalone/cluster/udp-mux.xml"));

Examples of org.freerealm.executor.CommandResult.addParameter()

                winner = defender;
            }
            winner.setMovementPoints(0);
            Executor.getInstance().execute(new RemoveUnitCommand(loser.getPlayer(), loser));
            commandResult = new CommandResult(CommandResult.RESULT_OK, "", CommandResult.UNIT_ATTACKED_UPDATE);
            commandResult.addParameter(attacker);
            commandResult.addParameter(defender);
            commandResult.addParameter(winner);
            commandResult.addParameter(defender.getCoordinate());
        } else {
            commandResult = new CommandResult(CommandResult.RESULT_OK, "", CommandResult.NO_UPDATE);

Examples of org.geomajas.plugin.printing.client.util.UrlBuilder.addParameter()

        if (r instanceof PrintGetTemplateResponse) {
          PrintGetTemplateResponse response = (PrintGetTemplateResponse) r;
          GWT.log("Downloading " + response.getDocumentId(), null);
          UrlBuilder url = new UrlBuilder(GWT.getHostPageBaseURL());
          url.addPath("d/printing").addParameter("documentId", response.getDocumentId());
          url.addParameter("name", (String) fileNameItem.getValue());
          url.addParameter("userToken", command.getUserToken());
          if ("save".equals(downloadTypeGroup.getValue())) {
            url.addParameter("download", "1");
            String encodedUrl = url.toString();
            // create a hidden iframe to avoid popups ???

Examples of org.geotools.jdbc.VirtualTable.addParameter()

       
        VirtualTable vt = new VirtualTable("riverReduced",
                "select a, b, c * %mulparam% \n from table \n where x > 1 %andparam%");
        vt.addGeometryMetadatata("geom", LineString.class, 4326);
        vt.setPrimaryKeyColumns(Arrays.asList("a", "b"));
        vt.addParameter(new VirtualTableParameter("mulparam", "1", new RegexpValidator("\\d+")));
        vt.addParameter(new VirtualTableParameter("andparam", null));
       
        FeatureTypeInfo ft = cFactory.createFeatureType();
        ft.setStore( ds );
        ft.setNamespace( ns );
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.