All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.ProgramParameter

java.lang.Object
   |
   +----com.ibm.as400.access.ProgramParameter

public class ProgramParameter
extends Object
implements Serializable
The ProgramParameter class is used with ProgramCall to pass parameter data to an AS/400 program, from an AS/400 program, or both. Input data is passed to an AS/400 program as a byte array with setInputData. Output data is requested from an AS/400 program by specifying the amount of data to return with setOutputDataLength. To get the output data once the AS/400 program has run use getOutputData. These values may also be set on the constructor.

See Also:
ProgramCall

Constructor Index

 o ProgramParameter()
Constructs a ProgramParameter object.
 o ProgramParameter(byte[])
Constructs a ProgramParameter object.
 o ProgramParameter(byte[], int)
Constructs ProgramParameter object.
 o ProgramParameter(int)
Constructs a ProgramParameter object.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Adds a PropertyChangeListener.
 o addVetoableChangeListener(VetoableChangeListener)
Adds a VetoableChangeListener.
 o getInputData()
Returns the parameter data that will be sent to the program.
 o getOutputData()
Returns the parameter data that has been received from the program.
 o getOutputDataLength()
Returns the output parameter data length.
 o removePropertyChangeListener(PropertyChangeListener)
Removes this PropertyChangeListener from the internal list.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes this VetoableChangeListener from the JellyBeans internal list.
 o setInputData(byte[])
Sets the parameter data that will be sent to the program.
 o setOutputDataLength(int)
Sets the output parameter data length.

Constructors

 o ProgramParameter
 public ProgramParameter()
Constructs a ProgramParameter object.

 o ProgramParameter
 public ProgramParameter(byte data[])
Constructs a ProgramParameter object. It is an input parameter.

Parameters:
data - The parameter data to be used as input to the program.
 o ProgramParameter
 public ProgramParameter(int size)
Constructs a ProgramParameter object. It is an output parameter.

Parameters:
size - The amount of data to be returned from the program.
 o ProgramParameter
 public ProgramParameter(byte data[],
                         int size)
Constructs ProgramParameter object. It is an input/output parameter object.

Parameters:
data - The parameter data to be used as input to the program.
size - The amount of data to be returned from the program.

Methods

 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener. The specified PropertyChangeListeners propertyChange method will be called each time the value of any bound property is changed. The PropertyListener object is added to a list of PropertyChangeListeners managed by this CommandCall; it can be removed with removePropertyChangeListener.

Parameters:
l - The PropertyChangeListener.
See Also:
removePropertyChangeListener
 o addVetoableChangeListener
 public void addVetoableChangeListener(VetoableChangeListener l)
Adds a VetoableChangeListener. The specified VetoableChangeListeners vetoableChange method will be called each time the value of any constrained property is changed.

Parameters:
l - The VetoableChangeListener.
See Also:
removeVetoableChangeListener
 o getInputData
 public byte[] getInputData()
Returns the parameter data that will be sent to the program.

Returns:
The parameter data to be used as input to the program.
 o getOutputData
 public byte[] getOutputData()
Returns the parameter data that has been received from the program.

Returns:
The output data returned from the program.
 o getOutputDataLength
 public int getOutputDataLength()
Returns the output parameter data length.

Returns:
The amount of data to be returned from the program.
 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener l)
Removes this PropertyChangeListener from the internal list. If the PropertyChangeListener is not on the list, nothing is done.

Parameters:
l - The PropertyChangeListener.
See Also:
addPropertyChangeListener
 o removeVetoableChangeListener
 public void removeVetoableChangeListener(VetoableChangeListener l)
Removes this VetoableChangeListener from the JellyBeans internal list. If the VetoableChangeListener is not on the list, nothing is done.

Parameters:
l - The VetoableChangeListener.
See Also:
addVetoableChangeListener
 o setInputData
 public void setInputData(byte data[]) throws PropertyVetoException
Sets the parameter data that will be sent to the program.

Parameters:
data - The parameter data to be used as input to the program.
Throws: PropertyVetoException
If the change is vetoed.
 o setOutputDataLength
 public void setOutputDataLength(int size) throws PropertyVetoException
Sets the output parameter data length.

Parameters:
size - The amount of data to be returned from the program.
Throws: PropertyVetoException
If the change is vetoed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index