Examples of ProgramParameter


Examples of com.ibm.as400.access.ProgramParameter

          mInputParams.length());
      mInputParams.append(XStringSupport.getNumberString(callNumber - 1,
          mCountLength));
    }

    parameters[0] = new ProgramParameter(mConverter
        .stringToByteArray(mInputParams.toString()));

    /*
     * Filling the output parameters
     */
    if (callNumber == 1)
    {
      NodeList output = doc.getElementsByTagName(TAG_OUTPUT);
      if (output.getLength() != 1)
      {
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_AS400, "47");
      }
      mOutputFields = getFields(output.item(0).getChildNodes());
    }
    if ((CALLTYPE_MULTI.equals(callType)) && callNumber == 1)
    {
      Configuration config = Configuration.getInstance();
      mCountLength = config.getValueAsInt("AS400Program", function,
          "CounterLength");
      parameters[1] = new ProgramParameter(mCountLength);
    }
    else
    {
      if (callNumber < 3)
      {
        Field field = null;
        for (Iterator it = mOutputFields.iterator(); it.hasNext();)
        {
          field = (Field) it.next();
          mOutputLength = mOutputLength + field.length;
        }
      }
      parameters[1] = new ProgramParameter(mOutputLength);
    }
    return parameters;
  }
View Full Code Here

Examples of com.ibm.as400.access.ProgramParameter

            if (output) {
                outputLength = getISeriesEndpoint().getOutputFieldLength(i);
            }

            if (input && output) {
                parameterList[i] = new ProgramParameter(inputData, outputLength);
            }
            if (input) {
                parameterList[i] = new ProgramParameter(inputData);
            }
            if (output) {
                parameterList[i] = new ProgramParameter(outputLength);
            }
        }

        return parameterList;
    }
View Full Code Here

Examples of com.ibm.as400.access.ProgramParameter

            if (output) {
                outputLength = getISeriesEndpoint().getOutputFieldLength(i);
            }

            if (input && output) {
                parameterList[i] = new ProgramParameter(inputData, outputLength);
            }
            if (input) {
                parameterList[i] = new ProgramParameter(inputData);
            }
            if (output) {
                parameterList[i] = new ProgramParameter(outputLength);
            }
        }

        return parameterList;
    }
View Full Code Here

Examples of com.ibm.as400.access.ProgramParameter

                // Else, inputData will remain null.
            }

            if (input && output) {
                LOG.trace("Parameter {} is both input and output.", i);
                parameterList[i] = new ProgramParameter(inputData, length);
            } else if (input) {
                LOG.trace("Parameter {} is input.", i);
                if (inputData != null) {
                    parameterList[i] = new ProgramParameter(inputData);
                } else {
                    parameterList[i] = new ProgramParameter();
                    parameterList[i].setParameterType(ProgramParameter.PASS_BY_REFERENCE);
                    parameterList[i].setNullParameter(true); // Just for self documentation.
                }
            } else {
                // output
                LOG.trace("Parameter {} is output.", i);
                parameterList[i] = new ProgramParameter(length);
            }
        }

        return parameterList;
    }
View Full Code Here

Examples of com.ibm.as400.access.ProgramParameter

            if (output) {
                outputLength = getISeriesEndpoint().getOutputFieldLength(i);
            }

            if (input && output) {
                parameterList[i] = new ProgramParameter(inputData, outputLength);
            }
            if (input) {
                parameterList[i] = new ProgramParameter(inputData);
            }
            if (output) {
                parameterList[i] = new ProgramParameter(outputLength);
            }
        }

        return parameterList;
    }
View Full Code Here

Examples of jrackattack.midi.ProgramParameter

    for (int i = 0; i < 4; i++) {
      fxParameter[i] = new FXParameter();
      fxParameter[i].setFxNumber(i);
    }
    for (int i = 0; i < 50; i++) {
      programParameter[i] = new ProgramParameter();
      programParameter[i].setProgramNumber(i);
    }
    globalParameter = new GlobalParameter();
  }
View Full Code Here

Examples of jrackattack.midi.ProgramParameter

    if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
      oldDir = fileChooser.getCurrentDirectory().getAbsolutePath();
      PatternParameter[] ppr = null;
      SoundParameter[] spr = null;
      FXParameter[] fpr = null;
      ProgramParameter prgPar = null;
      try {
        File f = fileChooser.getSelectedFile();
        XMLDecoder e = new XMLDecoder(new BufferedInputStream(
            new FileInputStream(f)));
        Object o = e.readObject();
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.