home *** CD-ROM | disk | FTP | other *** search
Java Source | 2002-12-19 | 2.5 KB | 128 lines |
- package com.ibm.extricity.adapters.mqseries.mqak;
-
- import com.ibm.epic.adapters.eak.mcs.*;
- import com.ibm.epic.adapters.eak.nativeadapter.*;
-
- /**
- * Insert the type's description here.
- * Creation date: (6/1/00 9:38:41 AM)
- * @author: Administrator
- */
- public class LogData
- {
- public static final int STATE_NOCHANGE = -1;
- public static final int STATE_INIT = 0;
- public static final int STATE_POLOOSE1ST = 1;
- public static final int STATE_POLOOSEALL = 2;
- public static final int STATE_POACKLOOSE1ST = 3;
- public static final int STATE_POACKLOOSEALL = 4;
- public static final int STATE_POACCLOOSE1ST = 5;
- public static final int STATE_POACCLOOSEALL = 6;
- public static final int STATE_OTHERACKLOOSE1ST = 7;
- public static final int STATE_OTHERACKLOOSEALL = 8;
- public static final int STATE_POREJECT = 9;
-
- public EpicMessage msgout;
-
- public String RealKey = null;
- public String Data = null;
- public int State = STATE_INIT;
-
- /**
- * LogData constructor comment.
- */
- public LogData()
- {
- super();
- RealKey = null;
- Data = null;
- State = STATE_INIT;
- }
-
- /**
- * LogData constructor comment.
- */
- public LogData(int newState)
- {
- super();
- RealKey = null;
- Data = null;
- State = newState;
- }
-
- /**
- * LogData constructor comment.
- */
- public LogData(String theData)
- {
- super();
- RealKey = null;
- Data = theData;
- State = STATE_INIT;
- }
-
- /**
- * LogData constructor comment.
- */
- public LogData(String theData,int newState)
- {
- super();
- RealKey = null;
- Data = theData;
- State = newState;
- }
-
- /**
- * LogData constructor comment.
- */
- public LogData(String theRealKey,String theData)
- {
- super();
- RealKey = theRealKey;
- Data = theData;
- State = STATE_INIT;
- }
-
- /**
- * LogData constructor comment.
- */
- public LogData(String theRealKey,String theData,int newState)
- {
- super();
- RealKey = theRealKey;
- Data = theData;
- State = newState;
- }
-
- /**
- * Insert the method's description here.
- * Creation date: (6/16/00 10:04:55 AM)
- * @return java.lang.String
- * @param str java.lang.String
- * @param Ix int
- * @param Len int
- */
- public static String mySubString(String str, int Ix, int Len)
- {
- if(str == null)
- {
- return null;
- }
- try
- {
- if(Ix > 0)
- {
- str = str.substring(Ix);
- }
- if(str.length() > Len)
- {
- str = str.substring(0,Len);
- }
- }
- catch(StringIndexOutOfBoundsException e)
- {
- str = "";
- }
- return str;
- }
- }