com.ibm.mq.headers

Class MQTM

  1. java.lang.Object
  2. extended bycom.ibm.mq.jmqi.JmqiObject
  3. extended bycom.ibm.mq.headers.internal.Header
  4. extended bycom.ibm.mq.headers.MQTM
All implemented interfaces:
MQData, MQHeader

  1. public class MQTM
  2. extends com.ibm.mq.headers.internal.Header
MQTM header class.
        struct tagMQTM 
        {
                MQCHAR4    StrucId;      // Structure identifier 
                MQLONG     Version;      // Structure version number
                MQCHAR48   QName;        // Name of triggered queue
                MQCHAR48   ProcessName;  // Name of process object
                MQCHAR64   TriggerData;  // Trigger data
                MQLONG     ApplType;     // Application type
                MQCHAR256  ApplId;       // Application identifier
                MQCHAR128  EnvData;      // Environment data
                MQCHAR128  UserData;     // User data
        };
 

Nested Class Summary

Nested classes/interfaces inherited from interface com.ibm.mq.headers.MQHeader
MQHeader.Field

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
SIZE
Size of an MQTM structure in bytes
Fields inherited from class com.ibm.mq.headers.internal.Header
DEFAULT_CCSID, DEFAULT_ENCODING
Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO

Constructor Summary

Constructor and Description
MQTM()
Constructs an MQTM instance with default field values.
MQTM(java.io.DataInput message)
Constructs an MQTM instance populated from an MQMessage.
MQTM(java.io.DataInput message,int encoding,int characterSet)
Constructs an MQTM instance populated from a DataInput source.

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getApplId()
gets the application identifier
  1. int
getApplType()
gets the application type
  1. java.lang.String
getEnvData()
gets the environment data
  1. java.lang.String
getProcessName()
gets the Name of process object
  1. java.lang.String
getQName()
gets the Name of triggered queue
  1. java.lang.String
getStrucId()
Get the structure identifier; the value will be MQTM_STRUC_ID
  1. java.lang.String
getTriggerData()
gets the trigger data
  1. java.lang.String
getUserData()
gets the user data
  1. int
getVersion()
Get the Structure version number
  1. void
setApplId(java.lang.String value)
sets the application identifier
  1. void
setApplType(int value)
sets the application type
  1. void
setEnvData(java.lang.String value)
sets the environment data
  1. void
setProcessName(java.lang.String value)
sets the Name of process object
  1. void
setQName(java.lang.String value)
sets the Name of triggered queue
  1. void
setTriggerData(java.lang.String value)
sets the trigger data
  1. void
setUserData(java.lang.String value)
sets the user data
Methods inherited from class com.ibm.mq.headers.internal.Header
characterSet, 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, write
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

SIZE

  1. public static final int SIZE
Size of an MQTM structure in bytes
See Also:

Constructor Detail

MQTM

  1. public MQTM()
Constructs an MQTM instance with default field values.

MQTM

  1. public MQTM(java.io.DataInput message)
  2. throws MQDataException
  3. java.io.IOException
Constructs an MQTM instance populated from an MQMessage.
Parameters:
message - the message to read
Throws:
MQDataException - if the message content does not yield a valid MQTM stucture
java.io.IOException - if there is a problem reading the message content

MQTM

  1. public MQTM(java.io.DataInput message,
  2. int encoding,
  3. int characterSet)
  4. throws MQDataException
  5. java.io.IOException
Constructs an MQTM instance populated from a DataInput source.
Parameters:
message - the MQMessage or other DataInput source to read
encoding - the initial numeric encoding of the data in the message
characterSet - the initial CCSID of the data in the message
Throws:
MQDataException - if the message content does not yield a valid MQTM stucture
java.io.IOException - if there is a problem reading the message content

Method Detail

getStrucId

  1. public java.lang.String getStrucId( )
Get the structure identifier; the value will be MQTM_STRUC_ID
Returns:
the structure identifier

getVersion

  1. public int getVersion()
Get the Structure version number
Returns:
the Structure version number

getQName

  1. public java.lang.String getQName( )
gets the Name of triggered queue
Returns:
the Name of triggered queue

setQName

  1. public void setQName(java.lang.String value)
sets the Name of triggered queue
Parameters:
value - the Name of triggered queue

getProcessName

  1. public java.lang.String getProcessName( )
gets the Name of process object
Returns:
the Name of process object

setProcessName

  1. public void setProcessName(java.lang.String value)
sets the Name of process object
Parameters:
value - the Name of process object

getTriggerData

  1. public java.lang.String getTriggerData( )
gets the trigger data
Returns:
the trigger data

setTriggerData

  1. public void setTriggerData(java.lang.String value)
sets the trigger data
Parameters:
value - the trigger data

getApplType

  1. public int getApplType()
gets the application type
Returns:
the application type

setApplType

  1. public void setApplType(int value)
sets the application type
Parameters:
value - the application type

getApplId

  1. public java.lang.String getApplId( )
gets the application identifier
Returns:
the application identifier

setApplId

  1. public void setApplId(java.lang.String value)
sets the application identifier
Parameters:
value - the application identifier

getEnvData

  1. public java.lang.String getEnvData( )
gets the environment data
Returns:
the environment data

setEnvData

  1. public void setEnvData(java.lang.String value)
sets the environment data
Parameters:
value - the environment data

getUserData

  1. public java.lang.String getUserData( )
gets the user data
Returns:
the user data

setUserData

  1. public void setUserData(java.lang.String value)
sets the user data
Parameters:
value - the user data