|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.jtopenlite.command.program.ProgramAdapter
public abstract class ProgramAdapter
Base class for all program call classes in this package.
| Constructor Summary | |
|---|---|
protected |
ProgramAdapter(String library,
String name,
int numberOfParameters)
|
| Method Summary | |
|---|---|
int |
getNumberOfParameters()
Returns the number of parameters for this program. |
byte[] |
getParameterInputData(int parmIndex)
Returns the input data of the parameter at the specified index. |
int |
getParameterInputLength(int parmIndex)
Returns the input length of the parameter at the specified index. |
int |
getParameterOutputLength(int parmIndex)
Returns the output length of the parameter at the specified index. |
int |
getParameterType(int parmIndex)
Returns the type of parameter at the specified index. |
String |
getProgramLibrary()
Returns the library of the program object. |
String |
getProgramName()
Returns the name of the program object. |
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. |
void |
newCall()
Invoked before any other methods on this interface by CommandConnection whenever this Program is called. |
void |
setParameterOutputData(int parmIndex,
byte[] tempData,
int maxLength)
Sets the output data for the parameter at the specified index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ProgramAdapter(String library,
String name,
int numberOfParameters)
| Method Detail |
|---|
public final void newCall()
Program
newCall in interface Programpublic final String getProgramLibrary()
Program
getProgramLibrary in interface Programpublic final String getProgramName()
Program
getProgramName in interface Programpublic final int getNumberOfParameters()
Program
getNumberOfParameters in interface Programpublic final int getParameterType(int parmIndex)
Program
getParameterType in interface ProgramParameterpublic final int getParameterInputLength(int parmIndex)
Program
getParameterInputLength in interface Programpublic final int getParameterOutputLength(int parmIndex)
Program
getParameterOutputLength in interface Programpublic final byte[] getParameterInputData(int parmIndex)
Program
getParameterInputData in interface Program
public final void setParameterOutputData(int parmIndex,
byte[] tempData,
int maxLength)
Program
setParameterOutputData in interface Programpublic final byte[] getTempDataBuffer()
Program
getTempDataBuffer in interface Program
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||