java.lang.Object | +----DLIBaseSegment | +----com.ibm.connector2.ims.ico.IMSCCIRecordDeprecated. IMSCCIRecord is deprecated. The functions provided by this class are now available in the development environments, WebSphere Studio Application Developer Integration Edition and Rational Application Developer. For more information, see "How to build a Java application that uses the J2EE Connector Architecture Common Client Interface" in the "IMS Examples Exchange" on the IMS web site: http://www.ibm.com/ims.
IMSCCIRecord is a helper class to enable CCI applications create the input byte array to be sent to IMS and extract the fields from the output byte array from IMS. Input and output message classes must extend this class and use the appropriate setter and getter methods.
public class IMSCCIRecord
extends DLIBaseSegment
Field | Description |
allFieldsGiven |
Constructor | Description |
IMSCCIRecord(String, DLITypeInfo[], int, String) | IMSCCIRecord constructor |
Method | Description |
Object basicGet(String) | Returns the value of fieldname as an Object. |
void basicSet(String, BigDecimal) | Sets fieldName to the specified BigDecimal value |
void basicSet(String, boolean) | Sets fieldName to the specified boolean value |
void basicSet(String, double) | Sets fieldName to the specified double value |
void basicSet(String, float) | Sets fieldName to the specified float value |
void basicSet(String, int) | Sets fieldName to the specified int value |
void basicSet(String, long) | Sets fieldName to the specified long value |
void basicSet(String, short) | Sets fieldName to the specified short value |
void basicSet(String, String) | Sets fieldName to a String value |
Object clone() | |
short getLL() | Returns the LL value |
String getRecordName() | Return the name of the Record. |
String getRecordShortDescription() | Returns a short description string for the Record. |
String getTranCode() | Returns the Transaction code value |
short getZZ() | Returns the ZZ value |
byte[] parseShortToByteArray(short) | |
void read(InputStream) | |
void setAllFieldsGiven(boolean) | |
void setEncoding(String) | |
void setLL(short) | Set the value of LL to the specified value |
void setRecordName(String) | Sets the name of the Record to the specified value. |
void setRecordShortDescription(String) | Sets a short description string for the Record. |
void setTranCode(String) | Set the value of transaction code to the specified value |
void setTranCodeLength(int) | |
void setZZ(short) | Set the value of ZZ to the specified value |
void write(OutputStream) |
public boolean allFieldsGiven
public IMSCCIRecord(String name, DLITypeInfo[] fieldInfo, int length, String inEncoding)IMSCCIRecord constructor
- Parameters
- name - name identifies the input or output class
- fieldInfo - DLITypeInfo array of the input/output message
- length - Total length of the DLITypeInfo array
- inEncoding - Codepage used for type conversions. The default is cp037
public Object basicGet(String fieldName)Returns the value of fieldname as an Object. The returned value must be typecasted before use. Eg: strValue = (String)basicGet("name"); The allowed data types are : int, short, long, boolean, String, double, float, BigDecimal
- Returns
- Object
public void basicSet(String fieldName, BigDecimal i)Sets fieldName to the specified BigDecimal value
public void basicSet(String fieldName, boolean i)Sets fieldName to the specified boolean value
public void basicSet(String fieldName, double i)Sets fieldName to the specified double value
public void basicSet(String fieldName, float i)Sets fieldName to the specified float value
public void basicSet(String fieldName, int i)Sets fieldName to the specified int value
public void basicSet(String fieldName, long i)Sets fieldName to the specified long value
public void basicSet(String fieldName, short i)Sets fieldName to the specified short value
public void basicSet(String fieldName, String str)Sets fieldName to a String value
public Object clone()
public short getLL()Returns the LL value
public String getRecordName()Return the name of the Record.
- Returns
- record name
- See Also
public String getRecordShortDescription()Returns a short description string for the Record.
- Returns
- short description of the record
- See Also
public String getTranCode()Returns the Transaction code value
public short getZZ()Returns the ZZ value
public static byte[] parseShortToByteArray(short val)
public void read(InputStream istream) throws IOException
public void setAllFieldsGiven(boolean inAllFieldsGiven)
public void setEncoding(String inEncoding)
public void setLL(short in_ll)Set the value of LL to the specified value
public void setRecordName(String recName)Sets the name of the Record to the specified value.
- See Also
public void setRecordShortDescription(String recShortDescription)Sets a short description string for the Record.
- See Also
public void setTranCode(String in_tranCode)Set the value of transaction code to the specified value
public void setTranCodeLength(int inTranCodeLength)
public void setZZ(short in_zz)Set the value of ZZ to the specified value
public void write(OutputStream ostream) throws IOException