java.lang.Object | +----com.ibm.ims.base.DLITypeInfo
public class DLITypeInfo
extends Object
Constructor | Description |
DLITypeInfo() |
Method | Description |
int DLITypeInfo(String, int, int, int) | Constructs a DLITypeInfo object. |
public DLITypeInfo()
public int DLITypeInfo(String fieldName, int type, int startingOffset, int length)Constructs a DLITypeInfo object. The
DLITypeInfo
class defines several constants that can be supplied as values for thetype
argument:CHAR
,INTEGER
,DOUBLE
,FLOAT
,BIT
,BIGINT
,TINYINT
, andSMALLINT
. Certain types have predefined lengths and cannot be changed. TheINTEGER
andFLOAT
types are always 4 bytes long. TheDOUBLE
andBIGINT
types are always 8 bytes long. TheSMALLINT
type is always 2 bytes long. TheTINYINT
andBIT
types are always 1 byte long. If another length value is specified for one of these types, an exception will be thrown.
- Parameters
- fieldName - The name of the field.
- type - the type of the field
- startingOffset - the starting offset in the input record for this field, beginning at offset 1
- length - the length, in bytes, of this field
- Throws
IllegalArgumentException
if the starting offset is less than zero, an unsupported type is given, or an invalid length is given