public class MQCFGR extends PCFParameter implements PCFContent
struct tagMQCFGR {
MQLONG Type; // Structure type
MQLONG StrucLength; // Structure length
MQLONG Parameter; // Parameter identifier
MQLONG ParameterCount; // Count of group parameter structures
};
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
int |
parameter
parameter identifier
|
int |
parameterCount
Count of group parameter structures
|
int |
SIZE
Deprecated.
prefer
PCFHeader.size() |
static int |
strucLength
structure length
|
static int |
type
structure type
|
| Constructor and Description |
|---|
MQCFGR()
Constructs an MQCFGR instance with default field values.
|
MQCFGR(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQCFGR instance populated from a DataInput source.
|
MQCFGR(MQMessage message)
Constructs an MQCFGR instance populated from an MQMessage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilterParameter(int parameter,
int operator,
byte[] value)
Adds a bytes string filter parameter to the group.
|
void |
addFilterParameter(int parameter,
int operator,
int value)
Adds an integer filter parameter to the group.
|
void |
addFilterParameter(int parameter,
int operator,
java.lang.String value)
Adds a string filter parameter to the group.
|
void |
addParameter(int parameter,
byte[] value)
Adds a byte array parameter to the group.
|
void |
addParameter(int parameter,
int value)
Adds an integer parameter to the group.
|
void |
addParameter(int parameter,
int[] values)
Adds an integer list parameter to the group.
|
void |
addParameter(int parameter,
long value)
Adds a 64-bit integer parameter to the group.
|
void |
addParameter(int parameter,
long[] values)
Adds a 64-bit integer list parameter to the group.
|
void |
addParameter(int parameter,
java.lang.String value)
Adds a string parameter to the group.
|
void |
addParameter(int parameter,
java.lang.String[] values)
Adds a string list parameter to the group.
|
void |
addParameter(PCFParameter parameter)
Adds a PCFParameter to the group.
|
boolean |
equals(java.lang.Object obj)
Returns true when invoked with another MQCFGR instance with the same parameter, parameterCount,
and parameter children.
|
byte[] |
getBytesParameterValue(int parameter)
Returns the value of the specified byte array parameter (MQCFBS).
|
long |
getInt64ParameterValue(int parameter)
Returns the value of the specified integer parameter (MQCFIN64) as an integer.
|
long[] |
getIntList64ParameterValue(int parameter)
Returns the value of the specified integer list parameter (MQCFIL64) as an array of integers.
|
int[] |
getIntListParameterValue(int parameter)
Returns the value of the specified integer list parameter (MQCFIL) as an array of integers.
|
int |
getIntParameterValue(int parameter)
Returns the value of the specified integer parameter (MQCFIN) as an integer.
|
int |
getParameter()
gets the parameter identifier
|
PCFParameter |
getParameter(int parameter)
Returns the PCFParameter structure for the specified parameter, or null if the parameter is not
found.
|
int |
getParameterCount()
gets the count of group parameter structures
|
java.util.Enumeration |
getParameters()
Returns an enumeration of the parameters in the group.
|
java.lang.Object |
getParameterValue(int parameter)
Returns the value of the specified parameter, or null if the parameter is not found.
|
java.lang.String[] |
getStringListParameterValue(int parameter)
Returns the value of the specified string list parameter (MQCFSL) as an array of strings.
|
java.lang.String |
getStringParameterValue(int parameter)
Returns the value of the specified string parameter (MQCFST) as a string.
|
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 |
hashCode()
Returns a hash code value for the object
|
int |
read(java.io.DataInput message,
int encoding,
int characterSet)
Reads content from a message or byte stream.
|
void |
setParameter(int value)
sets the parameter identifier
|
void |
setParameterCount(int value)
Sets the MQCFGR parameter count.
|
java.lang.String |
toString()
return a string representing this header
|
static int |
write(MQMessage message,
int parameter,
int parameterCount)
A convenience method for writing an MQCFGR header structure with the specified values to an
MQMessage.
|
getHeaderVersion, getParameterName, nextParameterinitialize, size, writecharacterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, store, store, type, validate, writepublic final int SIZE
PCFHeader.size()public static final int type
public static final int strucLength
public int parameter
public int parameterCount
public MQCFGR()
public MQCFGR(MQMessage message) throws MQException, java.io.IOException
message - the message to readMQException - if the message content does not yield a valid MQCFGR stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCFGR(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 MQCFGR stucturejava.io.IOException - if there is a problem reading the message contentpublic static int write(MQMessage message, int parameter, int parameterCount) throws java.io.IOException
message - the message to write toparameter - the parameter identifierparameterCount - the number of parameter structures enclosed by the groupjava.io.IOException - if there is a problem writing the messagepublic int read(java.io.DataInput message,
int encoding,
int characterSet)
throws MQException,
java.io.IOException
MQDataread in interface MQDataread in class com.ibm.mq.headers.internal.Headermessage - the message.encoding - the numeric encoding. see (CMQC.MQENC_* for values).characterSet - the Coded Character Set Identifier.java.io.IOExceptionMQExceptionHeader.read(java.io.DataInput, int, int)public int getType()
public int getStrucLength()
public int getParameter()
getParameter in class PCFParameterpublic void setParameter(int value)
value - the parameter identifierpublic int getParameterCount()
getParameterCount in interface PCFContentpublic void setParameterCount(int value)
value - the integer value as an Integer objectpublic java.lang.Object getValue()
PCFParametergetValue in class PCFParameterPCFParameter.getValue()public java.lang.String getStringValue()
PCFParametergetStringValue in class PCFParameterPCFParameter.getStringValue()public void addParameter(PCFParameter parameter)
PCFContentaddParameter in interface PCFContentparameter - the parameter structure to add (MQCFIN, MQCFIL, MQCFST and so on)PCFContent.addParameter(PCFParameter)public void addParameter(int parameter,
int value)
PCFContentaddParameter in interface PCFContentparameter - the integer parameter identifiervalue - the integer valuePCFContent.addParameter(int, int)public void addParameter(int parameter,
int[] values)
PCFContentaddParameter in interface PCFContentparameter - the integer list parameter identifiervalues - the array of integer valuesPCFContent.addParameter(int, int[])public void addParameter(int parameter,
long value)
PCFContentaddParameter in interface PCFContentparameter - the integer parameter identifiervalue - the integer valuePCFContent.addParameter(int, long)public void addParameter(int parameter,
long[] values)
PCFContentaddParameter in interface PCFContentparameter - the integer list parameter identifiervalues - the array of integer valuesPCFContent.addParameter(int, long[])public void addParameter(int parameter,
java.lang.String value)
PCFContentaddParameter in interface PCFContentparameter - the string parameter identifiervalue - the string valuePCFContent.addParameter(int, String)public void addParameter(int parameter,
java.lang.String[] values)
PCFContentaddParameter in interface PCFContentparameter - the string list parameter identifiervalues - the array of string valuesPCFContent.addParameter(int, String[])public void addParameter(int parameter,
byte[] value)
PCFContentaddParameter in interface PCFContentparameter - the string list parameter identifiervalue - the array of string valuesPCFContent.addParameter(int, byte[])public void addFilterParameter(int parameter,
int operator,
int value)
PCFContentaddFilterParameter in interface PCFContentparameter - the filter parameter identifieroperator - one of the MQCFOP_* filter operator constantsvalue - the filter valuePCFContent.addFilterParameter(int, int, int)public void addFilterParameter(int parameter,
int operator,
java.lang.String value)
PCFContentaddFilterParameter in interface PCFContentparameter - the filter parameter identifieroperator - one of the MQCFOP_* filter operator constantsvalue - the filter valuePCFContent.addFilterParameter(int, int, String)public void addFilterParameter(int parameter,
int operator,
byte[] value)
PCFContentaddFilterParameter in interface PCFContentparameter - the filter parameter identifieroperator - one of the MQCFOP_* filter operator constantsvalue - the filter valuePCFContent.addFilterParameter(int, int, byte[])public java.util.Enumeration getParameters()
PCFContentgetParameters in interface PCFContentPCFContent.getParameters()public PCFParameter getParameter(int parameter)
PCFContentgetParameter in interface PCFContentPCFContent.getParameter(int)public java.lang.Object getParameterValue(int parameter)
PCFContentgetParameterValue in interface PCFContentPCFContent.getParameterValue(int)public int getIntParameterValue(int parameter)
throws PCFException
PCFContentgetIntParameterValue in interface PCFContentparameter - the integer parameter identifierPCFException - if the specified parameter does not exist in the message (the reason
code given is MQRCCF_CFIN_PARM_ID_ERROR)PCFContent.getIntParameterValue(int)public int[] getIntListParameterValue(int parameter)
throws PCFException
PCFContentgetIntListParameterValue in interface PCFContentparameter - the integer list parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFIL_PARM_ID_ERROR)PCFContent.getIntListParameterValue(int)public long getInt64ParameterValue(int parameter)
throws PCFException
PCFContentgetInt64ParameterValue in interface PCFContentparameter - the integer parameter identifierPCFException - if the specified parameter does not exist in the message (the reason
code given is MQRCCF_CFIN_PARM_ID_ERROR)PCFContent.getInt64ParameterValue(int)public long[] getIntList64ParameterValue(int parameter)
throws PCFException
PCFContentgetIntList64ParameterValue in interface PCFContentparameter - the integer list parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFIL_PARM_ID_ERROR)PCFContent.getIntList64ParameterValue(int)public java.lang.String getStringParameterValue(int parameter)
throws PCFException
PCFContentgetStringParameterValue in interface PCFContentparameter - the string parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFST_PARM_ID_ERROR)PCFContent.getStringParameterValue(int)public java.lang.String[] getStringListParameterValue(int parameter)
throws PCFException
PCFContentgetStringListParameterValue in interface PCFContentparameter - the string list parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFSL_PARM_ID_ERROR; no more specific error code is defined)PCFContent.getStringListParameterValue(int)public byte[] getBytesParameterValue(int parameter)
throws PCFException
PCFContentgetBytesParameterValue in interface PCFContentparameter - the byte array parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFBS_PARM_ID_ERROR)PCFContent.getBytesParameterValue(int)public boolean equals(java.lang.Object obj)
equals in class PCFParameterobj - public int hashCode()
PCFParameterhashCode in class PCFParameterPCFParameter.hashCode()