Class MQTM

java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.headers.internal.Header
com.ibm.mq.headers.MQTM
All Implemented Interfaces:
MQData, MQHeader

public class MQTM 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 MQHeader

    MQHeader.Field
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Size of an MQTM structure in bytes

    Fields inherited from class com.ibm.mq.headers.internal.Header

    DEFAULT_CCSID, DEFAULT_ENCODING, delegate

    Fields inherited from class com.ibm.mq.jmqi.JmqiObject

    COMP_JM, COMP_JN, COMP_JO
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs an MQTM instance with default field values.
    MQTM(DataInput message)
    Constructs an MQTM instance populated from an MQMessage.
    MQTM(DataInput message, int encoding, int characterSet)
    Constructs an MQTM instance populated from a DataInput source.
  • Method Summary

    Modifier and Type
    Method
    Description
    gets the application identifier
    int
    gets the application type
    gets the environment data
    gets the Name of process object
    gets the Name of triggered queue
    Get the structure identifier; the value will be MQTM_STRUC_ID
    gets the trigger data
    gets the user data
    int
    Get the Structure version number
    void
    sets the application identifier
    void
    setApplType(int value)
    sets the application type
    void
    sets the environment data
    void
    sets the Name of process object
    void
    sets the Name of triggered queue
    void
    sets the trigger data
    void
    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 com.ibm.mq.jmqi.JmqiObject

    getJmqiEnvironment

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • MQTM

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

      public MQTM(DataInput message) throws MQDataException, 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
      IOException - if there is a problem reading the message content
    • MQTM

      public MQTM(DataInput message, int encoding, int characterSet) throws MQDataException, 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
      IOException - if there is a problem reading the message content
  • Method Details

    • getStrucId

      public String getStrucId()
      Get the structure identifier; the value will be MQTM_STRUC_ID
      Returns:
      the structure identifier
    • getVersion

      public int getVersion()
      Get the Structure version number
      Returns:
      the Structure version number
    • getQName

      public String getQName()
      gets the Name of triggered queue
      Returns:
      the Name of triggered queue
    • setQName

      public void setQName(String value)
      sets the Name of triggered queue
      Parameters:
      value - the Name of triggered queue
    • getProcessName

      public String getProcessName()
      gets the Name of process object
      Returns:
      the Name of process object
    • setProcessName

      public void setProcessName(String value)
      sets the Name of process object
      Parameters:
      value - the Name of process object
    • getTriggerData

      public String getTriggerData()
      gets the trigger data
      Returns:
      the trigger data
    • setTriggerData

      public void setTriggerData(String value)
      sets the trigger data
      Parameters:
      value - the trigger data
    • getApplType

      public int getApplType()
      gets the application type
      Returns:
      the application type
    • setApplType

      public void setApplType(int value)
      sets the application type
      Parameters:
      value - the application type
    • getApplId

      public String getApplId()
      gets the application identifier
      Returns:
      the application identifier
    • setApplId

      public void setApplId(String value)
      sets the application identifier
      Parameters:
      value - the application identifier
    • getEnvData

      public String getEnvData()
      gets the environment data
      Returns:
      the environment data
    • setEnvData

      public void setEnvData(String value)
      sets the environment data
      Parameters:
      value - the environment data
    • getUserData

      public String getUserData()
      gets the user data
      Returns:
      the user data
    • setUserData

      public void setUserData(String value)
      sets the user data
      Parameters:
      value - the user data