public class MQCFIL extends PCFParameter
struct tagMQCFIL {
MQLONG Type; // Structure type
MQLONG StrucLength; // Structure length
MQLONG Parameter; // Parameter identifier
MQLONG Count; // Count of parameter values
MQLONG Values[1]; // Parameter values -- first element
};
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
int |
count
count of parameter values
|
int |
parameter
parameter identifier
|
int |
strucLength
structure length
|
static int |
type
structure type
|
int[] |
values
parameter values
|
| Constructor and Description |
|---|
MQCFIL()
Constructs an MQCFIL instance with default field values.
|
MQCFIL(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQCFIL instance populated from a DataInput source.
|
MQCFIL(int parameter,
int[] values)
Initializes an MQCFIL with the specified values.
|
MQCFIL(MQMessage message)
Constructs an MQCFIL instance populated from an MQMessage.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true when invoked with another MQCFIL instance with the same parameter and equivalent
set of values in the same order.
|
int |
getCount()
gets the count of parameter values
|
int |
getParameter()
gets the parameter identifier
|
java.lang.String |
getStringValue()
Get the string value of the parameter
|
int |
getStrucLength()
Get the length of the structure.
|
int |
getType()
gets the structure type
|
java.lang.Object |
getValue()
Get the value of the parameter
|
int[] |
getValues()
gets the parameter values
|
int |
hashCode()
Returns a hash code value for the object
|
void |
setParameter(int value)
sets the parameter identifier
|
void |
setValues(int[] values)
sets the parameter values
|
static int |
write(MQMessage message,
int parameter,
int[] values)
A convenience method for writing an MQCFIL header with the specified values to a message.
|
getHeaderVersion, getParameterName, nextParameterinitialize, size, toString, writecharacterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, store, store, type, validate, writepublic static final int type
public int strucLength
public int parameter
public int count
public int[] values
public MQCFIL()
public MQCFIL(MQMessage message) throws MQException, java.io.IOException
message - the message to readMQException - if the message content does not yield a valid MQCFIL stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFIL(java.io.DataInput message,
int encoding,
int characterSet)
throws MQException,
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 messageMQException - if the message content does not yield a valid MQCFIL stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFIL(int parameter,
int[] values)
parameter - the parameter identifiervalues - the set of integer parameter valuespublic static int write(MQMessage message, int parameter, int[] values) throws java.io.IOException
message - the message to write toparameter - the parameter identifiervalues - the set of integer valuesjava.io.IOExceptionpublic 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 getCount()
public int[] getValues()
public void setValues(int[] values)
values - the parameter valuespublic java.lang.Object getValue()
PCFParametergetValue in class PCFParameterPCFParameter.getValue()public java.lang.String getStringValue()
PCFParametergetStringValue in class PCFParameterPCFParameter.getStringValue()