com.ibm.jtopenlite.command.program
Class CallServiceProgramProcedure
- java.lang.Object
-
- com.ibm.jtopenlite.command.program.CallServiceProgramProcedure
-
- All Implemented Interfaces:
- Program
- Direct Known Subclasses:
- RetrieveJournalEntries, RetrieveJournalReceiverInformation
public class CallServiceProgramProcedure extends java.lang.Object implements Program
Service program call - QZRUCLSP This class fully implements the V5R4 specification of QZRUCLSP.
-
-
Field Summary
Fields Modifier and Type Field and Description static intRETURN_VALUE_FORMAT_INTEGERstatic intRETURN_VALUE_FORMAT_INTEGER_AND_ERROR_NUMBERstatic intRETURN_VALUE_FORMAT_NONEstatic intRETURN_VALUE_FORMAT_POINTER
-
Constructor Summary
Constructors Constructor and Description CallServiceProgramProcedure()CallServiceProgramProcedure(java.lang.String serviceProgramName, java.lang.String serviceProgramLibrary, java.lang.String exportName, int returnValueFormat)
-
Method Summary
Methods Modifier and Type Method and Description java.lang.StringgetExportName()intgetNumberOfParameters()Returns the number of parameters for this program.CallServiceProgramParameterFormatgetParameterFormat()byte[]getParameterInputData(int parmIndex)Returns the input data of the parameter at the specified index.intgetParameterInputLength(int parmIndex)Returns the input length of the parameter at the specified index.intgetParameterOutputLength(int parmIndex)Returns the output length of the parameter at the specified index.intgetParameterType(int parmIndex)Returns the type of parameter at the specified index.java.lang.StringgetProgramLibrary()Returns the library of the program object.java.lang.StringgetProgramName()Returns the name of the program object.intgetReturnValueErrorNumber()intgetReturnValueFormat()intgetReturnValueInteger()byte[]getReturnValuePointer()java.lang.StringgetServiceProgramLibrary()java.lang.StringgetServiceProgramName()byte[]getTempDataBuffer()The implementor can create their own temp byte array for the output parameter size and reuse it each time a call is performed, or for more than one parameter on the same call.voidnewCall()Invoked before any other methods on this interface by CommandConnection whenever this Program is called.voidsetExportName(java.lang.String name)voidsetParameterFormat(CallServiceProgramParameterFormat format)voidsetParameterOutputData(int parmIndex, byte[] tempData, int maxLength)Sets the output data for the parameter at the specified index.voidsetReturnValueFormat(int retval)voidsetServiceProgramLibrary(java.lang.String lib)voidsetServiceProgramName(java.lang.String name)
-
-
-
Field Detail
-
RETURN_VALUE_FORMAT_NONE
public static final int RETURN_VALUE_FORMAT_NONE
- See Also:
- Constant Field Values
-
RETURN_VALUE_FORMAT_INTEGER
public static final int RETURN_VALUE_FORMAT_INTEGER
- See Also:
- Constant Field Values
-
RETURN_VALUE_FORMAT_POINTER
public static final int RETURN_VALUE_FORMAT_POINTER
- See Also:
- Constant Field Values
-
RETURN_VALUE_FORMAT_INTEGER_AND_ERROR_NUMBER
public static final int RETURN_VALUE_FORMAT_INTEGER_AND_ERROR_NUMBER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CallServiceProgramProcedure
public CallServiceProgramProcedure()
-
CallServiceProgramProcedure
public CallServiceProgramProcedure(java.lang.String serviceProgramName, java.lang.String serviceProgramLibrary, java.lang.String exportName, int returnValueFormat)
-
-
Method Detail
-
getServiceProgramName
public java.lang.String getServiceProgramName()
-
setServiceProgramName
public void setServiceProgramName(java.lang.String name)
-
getServiceProgramLibrary
public java.lang.String getServiceProgramLibrary()
-
setServiceProgramLibrary
public void setServiceProgramLibrary(java.lang.String lib)
-
getExportName
public java.lang.String getExportName()
-
setExportName
public void setExportName(java.lang.String name)
-
getReturnValueFormat
public int getReturnValueFormat()
-
setReturnValueFormat
public void setReturnValueFormat(int retval)
-
getParameterFormat
public CallServiceProgramParameterFormat getParameterFormat()
-
setParameterFormat
public void setParameterFormat(CallServiceProgramParameterFormat format)
-
getProgramName
public java.lang.String getProgramName()
Description copied from interface:ProgramReturns the name of the program object.- Specified by:
getProgramNamein interfaceProgram
-
getProgramLibrary
public java.lang.String getProgramLibrary()
Description copied from interface:ProgramReturns the library of the program object.- Specified by:
getProgramLibraryin interfaceProgram
-
getNumberOfParameters
public int getNumberOfParameters()
Description copied from interface:ProgramReturns the number of parameters for this program.- Specified by:
getNumberOfParametersin interfaceProgram
-
getTempDataBuffer
public final byte[] getTempDataBuffer()
Description copied from interface:ProgramThe implementor can create their own temp byte array for the output parameter size and reuse it each time a call is performed, or for more than one parameter on the same call. The implementor can choose to ignore this, and simply return null. The command connection checks to see if the buffer returned by this method is not null and large enough to accommodate the output parameter size.- Specified by:
getTempDataBufferin interfaceProgram
-
newCall
public void newCall()
Description copied from interface:ProgramInvoked before any other methods on this interface by CommandConnection whenever this Program is called.
-
getReturnValueInteger
public int getReturnValueInteger()
-
getReturnValueErrorNumber
public int getReturnValueErrorNumber()
-
getReturnValuePointer
public byte[] getReturnValuePointer()
-
getParameterInputLength
public int getParameterInputLength(int parmIndex)
Description copied from interface:ProgramReturns the input length of the parameter at the specified index.- Specified by:
getParameterInputLengthin interfaceProgram
-
getParameterOutputLength
public int getParameterOutputLength(int parmIndex)
Description copied from interface:ProgramReturns the output length of the parameter at the specified index.- Specified by:
getParameterOutputLengthin interfaceProgram
-
getParameterType
public int getParameterType(int parmIndex)
Description copied from interface:ProgramReturns the type of parameter at the specified index.- Specified by:
getParameterTypein interfaceProgram- See Also:
Parameter
-
getParameterInputData
public byte[] getParameterInputData(int parmIndex)
Description copied from interface:ProgramReturns the input data of the parameter at the specified index.- Specified by:
getParameterInputDatain interfaceProgram
-
setParameterOutputData
public void setParameterOutputData(int parmIndex, byte[] tempData, int maxLength)Description copied from interface:ProgramSets the output data for the parameter at the specified index.- Specified by:
setParameterOutputDatain interfaceProgram
-
-