com.ibm.websphere.batch.ilc

Interface ILProcedure


  1. public interface ILProcedure
ILProcedure represents a target native procedure to be invoked through an ILContainer instance in a WAS z/OS environment. An ILProcedure encapsulates the module name, procedure name, and parameter list of a native language procedure.

Note: the ILProcedure representation of a native procedure is that a named module contains one or more named procedures. Each procedure receives one or more input parameters and may return an optional return code.


Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getBuildCorrelator()
Returns the build correlator string associated with this ILProcedure.
  1. java.lang.String
getBuildDate()
Returns the build date string associated with this ILProcedure.
  1. int
getHandle()
Get native handle to this ILProcedure.
  1. java.lang.String
getModuleName()
Returns the module name of this ILProcedure.
  1. byte[]
getParm(int index)
Get specified parameter from parameter list of this ILProcedure.
  1. byte[][]
getParmList()
Returns the parameter list for this ILProcedure.
  1. java.lang.String
getProcedureName()
Returns the procedure name of this ILProcedure.
  1. int
getReturnCode()
Get the return code from the last invocation of this ILProcedure.
  1. void
setParm(int index,byte[] parm)
Set specified parameter in parameter list of this ILProcedure.
  1. void
setParmList(byte[][] parmlist)
Sets the parameter list for this ILProcedure.
  1. void
setReturnCode(int rc)
Set the return code for this ILProcedure.

Method Detail

getBuildCorrelator

  1. java.lang.String getBuildCorrelator( )
Returns the build correlator string associated with this ILProcedure. This value is specified when the ILProcedure is created.
Returns:
build correlator string.

getBuildDate

  1. java.lang.String getBuildDate()
Returns the build date string associated with this ILProcedure. This value is specified when the ILProcedure is created.
Returns:
build date string.

getModuleName

  1. java.lang.String getModuleName( )
Returns the module name of this ILProcedure. This value is specified when the ILProcedure is created.
Returns:
the module name of this ILProcedure.

getProcedureName

  1. java.lang.String getProcedureName( )
Returns the procedure name of this ILProcedure. This value is specified when the ILProcedure is created.
Returns:
the procedure name of this ILProcedure.

getParmList

  1. byte[][] getParmList()
Returns the parameter list for this ILProcedure. The parameter list format is an array of byte arrays. Each byte array in the returned array corresponds to a positional parameter specified by the target native language procedure. Each parameter is in binary (byte) format.
Returns:
the parameter list from this ILProcedure.

setParmList

  1. void setParmList(byte[][] parmlist)
Sets the parameter list for this ILProcedure. The parameter list format is an array of byte arrays. Each byte array in the returned array corresponds to a positional parameter specified by the target native language procedure. Each parameter is in binary (byte) format.
Parameters:
parmlist - specifies the parameter list in array of byte array format

getParm

  1. byte[] getParm(int index)
Get specified parameter from parameter list of this ILProcedure. The parameter list format is an array of byte arrays. Each byte array in the returned array corresponds to a positional parameter specified by the target native language procedure. Each parameter is in binary (byte) format.
Parameters:
index - specifies parameter to get from the ILProcedure parameter list.
Returns:
specified parameter from ILProcedure parameter list.

setParm

  1. void setParm(int index,
  2. byte[] parm)
Set specified parameter in parameter list of this ILProcedure. The parameter list format is an array of byte arrays. Each byte array in the returned array corresponds to a positional parameter specified by the target native language procedure. Each parameter is in binary (byte) format.
Parameters:
index - specifies parameter to set within the ILProcedure parameter list.
parm - specifies parameter to set in ILProcedure.

getHandle

  1. int getHandle()
Get native handle to this ILProcedure. A setter is not supplied on the public interface.
Returns:
handle.

getReturnCode

  1. int getReturnCode()
Get the return code from the last invocation of this ILProcedure. If a return code is never set, this method will always return 0.

setReturnCode

  1. void setReturnCode(int rc)
Set the return code for this ILProcedure. This method is used by the IL container to set the return code after the IL invocation completes.