home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Java / Java.zip / mqaoad21.zip / ProcessData.java < prev    next >
Text File  |  2003-01-13  |  3KB  |  141 lines

  1. package com.ibm.extricity.adapters.mqseries.mqak;
  2.  
  3. /**
  4.  * ProcessData.java 1.0 11/3/2000
  5.  *
  6.  * This class is used as a parameter class for maintaining Process Correlation
  7.  * data for the Extricity MQAK Adapter functions
  8.  *
  9.  * OCO Source Materials
  10.  *
  11.  * 5799-RNK
  12.  *
  13.  * (C) Copyright IBM Corp. 2000
  14.  *
  15.  * The source code for this program is not published
  16.  * or otherwise divested of its trade secrets,
  17.  * irrespective of what has been deposited with the
  18.  * U. S. Copyright Office.
  19.  *
  20.  * @author Thomas W. Jaworski
  21. **/
  22. public class ProcessData implements ProcessDataInt
  23. {
  24.    protected String Item1 = null;
  25.    protected String Item1Name = "BOCorrelationID";
  26.    protected String Item2Name = "TradingPartner";
  27.    protected String Item2 = null;
  28.  
  29. /**
  30.  * ProcessData constructor comment.
  31.  */
  32. protected ProcessData()
  33. {
  34.    super();
  35. }
  36.  
  37. /**
  38.  * ProcessData constructor comment.
  39.  */
  40. protected ProcessData(String item1,String item2)
  41. {
  42.    super();
  43.    Item1 = item1;
  44.    Item2 = item2;
  45. }
  46.  
  47. /**
  48.  * Insert the method's description here.
  49.  * Creation date: (11/14/00 2:07:13 PM)
  50.  * @param id java.lang.String
  51.  */
  52. public String getBOCorrelationID()
  53. {
  54.    return Item1;
  55. }
  56.  
  57. /**
  58.  * Insert the method's description here.
  59.  * Creation date: (11/14/00 2:07:13 PM)
  60.  * @param id java.lang.String
  61.  */
  62. public String getCommitContext()
  63. {
  64.    return Item2;
  65. }
  66.  
  67. /**
  68.  * Insert the method's description here.
  69.  * Creation date: (11/14/00 2:07:13 PM)
  70.  * @param id java.lang.String
  71.  */
  72. public String getMsgXML()
  73. {
  74.    return Item1;
  75. }
  76.  
  77. /**
  78.  * Insert the method's description here.
  79.  * Creation date: (11/14/00 2:07:13 PM)
  80.  * @param id java.lang.String
  81.  */
  82. public String getTradingPartner()
  83. {
  84.    return Item2;
  85. }
  86.  
  87. /**
  88.  * Insert the method's description here.
  89.  * Creation date: (11/14/00 2:07:13 PM)
  90.  * @param id java.lang.String
  91.  */
  92. public void setBOCorrelationID(String id)
  93. {
  94.    Item1 = id;
  95.    Item1Name = "BOCorrelationID";
  96. }
  97.  
  98. /**
  99.  * Insert the method's description here.
  100.  * Creation date: (11/14/00 2:07:13 PM)
  101.  * @param id java.lang.String
  102.  */
  103. public void setCommitContext(String context)
  104. {
  105.    Item2 = context;
  106.    Item2Name = "CommitContext";
  107. }
  108.  
  109. /**
  110.  * Insert the method's description here.
  111.  * Creation date: (11/14/00 2:07:13 PM)
  112.  * @param id java.lang.String
  113.  */
  114. public void setMsgXML(String xml)
  115. {
  116.    Item1 = xml;
  117.    Item1Name = "MsgXML";
  118. }
  119.  
  120. /**
  121.  * Insert the method's description here.
  122.  * Creation date: (11/14/00 2:07:13 PM)
  123.  * @param id java.lang.String
  124.  */
  125. public void setTradingPartner(String id)
  126. {
  127.    Item2 = id;
  128.    Item2Name = "TradingPartner";
  129. }
  130.  
  131. /**
  132.  * Insert the method's description here.
  133.  * Creation date: (11/8/00 3:33:54 PM)
  134.  * @return java.lang.String
  135.  */
  136. public String toString()
  137. {
  138.    return "{"+Item1Name+"="+Item1+","+Item2Name+"="+Item2+"}";
  139. }
  140. }
  141.