public class MQCFIN extends PCFParameter
struct tagMQCFIN {
MQLONG Type; // Structure type
MQLONG StrucLength; // Structure length
MQLONG Parameter; // Parameter identifier
MQLONG Value; // Parameter value
};
MQHeader.Field| Constructor and Description |
|---|
MQCFIN()
Constructs an MQCFIN instance with default field values.
|
MQCFIN(java.io.DataInput message)
Constructs an MQCFIN instance populated from an MQMessage.
|
MQCFIN(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQCFIN instance populated from a DataInput source.
|
MQCFIN(int parameter,
int value)
Initializes an MQCFIN header with the specified values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true when invoked with another MQCFIN instance with the same parameter and value.
|
int |
getIntValue()
gets the parameter value
|
int |
getParameter()
get the parameter identifier
|
java.lang.String |
getStringValue()
gets the parameter value as a String
|
int |
getStrucLength()
Get the length of the structure.
|
int |
getType()
gets the structure type
|
java.lang.Object |
getValue()
gets the parameter value
|
int |
hashCode()
Returns a hash code value for the object
|
void |
setIntValue(int value)
sets the parameter value
|
void |
setParameter(int value)
sets the parameter identifier
|
static int |
write(java.lang.Object message,
int parameter,
int value)
A convenience method for writing an MQCFIN header structure with the specified values to an
MQMessage.
|
getHeaderVersion, getParameterName, nextParametercharacterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, size, store, store, toString, type, validate, write, writepublic MQCFIN()
public MQCFIN(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQCFIN stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFIN(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException,
java.io.IOException
message - the MQMessage or other DataInput source to readencoding - the initial numeric encoding of the data in the messagecharacterSet - the initial CCSID of the data in the messageMQDataException - if the message content does not yield a valid MQCFIN stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFIN(int parameter,
int value)
parameter - the parameter identifiervalue - the integer parameter valuepublic static int write(java.lang.Object message,
int parameter,
int value)
throws java.io.IOException
message - the message to write toparameter - the parameter identifiervalue - the integer parameter valuejava.io.IOException - if there is a problem writing the messageCMQCFCpublic boolean equals(java.lang.Object obj)
equals in class PCFParameterobj - public int hashCode()
PCFParameterhashCode in class PCFParameterPCFParameter.hashCode()public int getType()
public int getStrucLength()
public int getParameter()
getParameter in class PCFParameterpublic void setParameter(int value)
value - the parameter identifierpublic int getIntValue()
public void setIntValue(int value)
value - the parameter valuepublic java.lang.Object getValue()
PCFParametergetValue in class PCFParameterPCFParameter.getValue()public java.lang.String getStringValue()
PCFParametergetStringValue in class PCFParameterPCFParameter.getStringValue()