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
-
ProgramParameter()
- Constructs a ProgramParameter object.
-
ProgramParameter(byte[])
- Constructs a ProgramParameter object.
-
ProgramParameter(byte[], int)
- Constructs ProgramParameter object.
-
ProgramParameter(int)
- Constructs a ProgramParameter object.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a PropertyChangeListener.
-
addVetoableChangeListener(VetoableChangeListener)
- Adds a VetoableChangeListener.
-
getInputData()
- Returns the parameter data that
will be sent to
the program.
-
getOutputData()
- Returns the parameter data that
has been received from
the program.
-
getOutputDataLength()
- Returns the output parameter data length.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes this PropertyChangeListener from the internal list.
-
removeVetoableChangeListener(VetoableChangeListener)
- Removes this VetoableChangeListener from the JellyBeans internal list.
-
setInputData(byte[])
-
Sets the parameter data that
will be sent to
the program.
-
setOutputDataLength(int)
- Sets the output parameter data length.
ProgramParameter
public ProgramParameter()
- Constructs a ProgramParameter object.
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.
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.
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.
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
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
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.
getOutputData
public byte[] getOutputData()
- Returns the parameter data that
has been received from
the program.
- Returns:
- The output data returned from the program.
getOutputDataLength
public int getOutputDataLength()
- Returns the output parameter data length.
- Returns:
- The amount of data to be returned from the program.
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
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
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.
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