public abstract class PxReqCV
extends java.lang.Object
| Constructor and Description |
|---|
PxReqCV(short type)
Constructs a PxReqCV object.
|
PxReqCV(short type,
boolean asynchronous)
Constructs a PxReqCV object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectParm(java.lang.Object object) |
void |
addObjectParm(com.ibm.as400.access.PxTable pxTable,
java.lang.Object object) |
void |
addParm(com.ibm.as400.access.PxParm parameter)
Appends a parameter to the datastream.
|
void |
clearParms()
Clears the parameters.
|
java.lang.Object |
clone()
Returns a new copy of this datastream.
|
void |
dump(java.io.PrintWriter output)
Dumps the datastream for debugging and tracing.
|
long |
getCorrelationId() |
com.ibm.as400.access.PxParm |
getParm(int i)
Returns a parameter.
|
int |
getParmCount()
Returns the parameter count.
|
short |
getType()
Returns the datastream type.
|
void |
readFrom(java.io.InputStream input,
com.ibm.as400.access.PxDSFactory factory)
Loads this datastream by reading from an input stream.
|
java.lang.String |
toString()
Returns the String representation of the datastream.
|
void |
writeTo(java.io.OutputStream output)
Writes the contents of the datastream to an output stream.
|
public PxReqCV(short type)
type - The datastream type. Valid values are listed in
the ProxyConstants class.public PxReqCV(short type,
boolean asynchronous)
type - The datastream type. Valid values are listed in
the ProxyConstants class.asynchronous - true if asynchronous, false otherwise.public void dump(java.io.PrintWriter output)
output - The print writer.public long getCorrelationId()
public void writeTo(java.io.OutputStream output)
throws java.io.IOException
output - The output stream.java.io.IOException - If an error occurs.public void addObjectParm(java.lang.Object object)
public void addObjectParm(com.ibm.as400.access.PxTable pxTable,
java.lang.Object object)
public void addParm(com.ibm.as400.access.PxParm parameter)
parameter - The parameter.public void clearParms()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - If the object cannot be cloned.public com.ibm.as400.access.PxParm getParm(int i)
i - The parameter index (0-based).public int getParmCount()
public void readFrom(java.io.InputStream input,
com.ibm.as400.access.PxDSFactory factory)
throws java.io.IOException
input - The input stream.factory - The datastream factory. This is sometimes
needed when datastreams are nested.java.io.IOException - If an error occurs.public short getType()
public java.lang.String toString()
toString in class java.lang.Object