Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.view.datatable
Class ISeriesDataTableColumnAdapter

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.view.datatable.ISeriesDataTableColumnAdapter
All Implemented Interfaces:
IISeriesHostFieldConstants

public class ISeriesDataTableColumnAdapter
extends Object
implements IISeriesHostFieldConstants

Class to adapt fields from a database file record format to a column in the Data Table View. Maintain the Field and Column description as regards the table. Each instance pertains to a column in the table, not an individual record in the actual file.


Field Summary
static String copyright
           
 int entryTextLength
           
 FieldDescription fldDesc
           
 int fldIndex
           
 String fldName
           
 char fldType
           
 boolean isAllowNull
           
 boolean isKey
           
 boolean isRecordNumber
           
 boolean limitEntryTextLength
           
 
Fields inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesHostFieldConstants
Copyright, DATALINK_INTEGRITY_DB, DATALINK_INTEGRITY_DLFM, DATALINK_READPERMISSION_DB, DATALINK_READPERMISSION_DLFM, DATALINK_UNLINK_DELETE, DATALINK_UNLINK_RESTORE, DATALINK_WRITEPERMISSION_DLFM, DATALINK_WRITEPERMISSION_NONE, DATATYPE_ALPHABETIC_ONLY, DATATYPE_ALPHANUMERIC, DATATYPE_BINARY, DATATYPE_BLOB, DATATYPE_CLOB, DATATYPE_DATALINK, DATATYPE_DATE, DATATYPE_DBCLOB, DATATYPE_DBCS_EITHER, DATATYPE_DBCS_ONLY, DATATYPE_DBCS_OPEN, DATATYPE_DIGITS_ONLY, DATATYPE_FLOAT, DATATYPE_GRAPHIC, DATATYPE_HEXADECIMAL, DATATYPE_INHIBIT, DATATYPE_KATAKANA, DATATYPE_NUMERIC_ONLY, DATATYPE_NUMERIC_SHIFT, DATATYPE_NUMERICONLY, DATATYPE_PACKED_DECIMAL, DATATYPE_TIME, DATATYPE_TIMESTAMP, DATATYPE_ZONED_DECIMAL, DATETIME_CDMY, DATETIME_CMDY, DATETIME_CYMD, DATETIME_DMY, DATETIME_DMYY, DATETIME_EUR, DATETIME_HMS, DATETIME_ISO, DATETIME_JIS, DATETIME_JUL, DATETIME_JUL4, DATETIME_MDY, DATETIME_MDYY, DATETIME_MY, DATETIME_MYY, DATETIME_SAA, DATETIME_USA, DATETIME_YM, DATETIME_YMD, DATETIME_YYM, DATETIME_YYMD
 
Constructor Summary
ISeriesDataTableColumnAdapter()
           
ISeriesDataTableColumnAdapter(FieldDescription fd, boolean _iskey, int _fieldindex, ISeriesHostFieldBasic qryfld, MemberElement memberElement)
           
 
Method Summary
static byte[] convertHexToBytes(String hs)
           
 int getCellEditStyle()
           
 String getColumnTextForFld(Record record)
           
 String getNameLabel()
           
 String getTypeLabel()
           
 void initRecordNumberColumn()
           
 boolean isNullValueField(Record record)
           
 Object newKey(String input)
           
static String toHexString(byte[] baValue)
           
static String toHexString(String sValue)
           
 SystemMessage validate(String input, NullCapableFieldPrompt fieldPrompt)
           
 SystemMessage validateDate(String input)
           
 SystemMessage validateExpandedHexadecimal(String hs, NullCapableFieldPrompt fieldPrompt)
           
 SystemMessage validateRecordNumber(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

isRecordNumber

public boolean isRecordNumber

isKey

public boolean isKey

isAllowNull

public boolean isAllowNull

fldIndex

public int fldIndex

fldDesc

public FieldDescription fldDesc

fldName

public String fldName

fldType

public char fldType

limitEntryTextLength

public boolean limitEntryTextLength

entryTextLength

public int entryTextLength
Constructor Detail

ISeriesDataTableColumnAdapter

public ISeriesDataTableColumnAdapter()

ISeriesDataTableColumnAdapter

public ISeriesDataTableColumnAdapter(FieldDescription fd,
                                     boolean _iskey,
                                     int _fieldindex,
                                     ISeriesHostFieldBasic qryfld,
                                     MemberElement memberElement)
                              throws SystemMessageException
Throws:
SystemMessageException
Method Detail

initRecordNumberColumn

public void initRecordNumberColumn()

isNullValueField

public boolean isNullValueField(Record record)

getNameLabel

public String getNameLabel()

getColumnTextForFld

public String getColumnTextForFld(Record record)
                           throws Exception
Throws:
Exception

getTypeLabel

public String getTypeLabel()

newKey

public Object newKey(String input)

getCellEditStyle

public int getCellEditStyle()

validate

public SystemMessage validate(String input,
                              NullCapableFieldPrompt fieldPrompt)

validateExpandedHexadecimal

public SystemMessage validateExpandedHexadecimal(String hs,
                                                 NullCapableFieldPrompt fieldPrompt)

validateRecordNumber

public SystemMessage validateRecordNumber(String s)

toHexString

public static String toHexString(String sValue)

toHexString

public static String toHexString(byte[] baValue)

convertHexToBytes

public static byte[] convertHexToBytes(String hs)
                                throws Exception
Throws:
Exception

validateDate

public SystemMessage validateDate(String input)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.