public class HexFieldDescription extends FieldDescription implements VariableLengthFieldDescription, java.io.Serializable
ALIGN_LEFT, ALIGN_RIGHT
Constructor and Description |
---|
HexFieldDescription()
Constructs a HexFieldDescription object.
|
HexFieldDescription(AS400ByteArray dataType,
java.lang.String name)
Constructs a HexFieldDescription object.
|
HexFieldDescription(AS400ByteArray dataType,
java.lang.String name,
java.lang.String ddsName)
Constructs a HexFieldDescription object.
|
Modifier and Type | Method and Description |
---|---|
int |
getVARLEN()
Returns the value specified for the VARLEN keyword for this field.
|
boolean |
isVariableLength()
Indicates if the field is a variable-length field.
|
void |
setDataType(AS400ByteArray dataType)
Sets the AS400DataType object describing this field.
|
void |
setDFT(byte[] defaultValue)
Sets the value for the DFT keyword for this field.
|
void |
setDFTNull()
Sets the value for the DFT keyword to be *NULL for this field.
|
void |
setVariableLength(boolean value)
Indicates that the field is a variable-length field.
|
void |
setVARLEN(int varLen)
Sets the value to specify for the VARLEN keyword for this field.
|
getALIAS, getALWNULL, getCOLHDG, getDataType, getDDSName, getDFT, getDFTCurrentValue, getFieldName, getKeyFieldFunctions, getLayoutAlignment, getLayoutLength, getLength, getREFFIL, getREFFLD, getREFFMT, getREFLIB, getTEXT, isDFTCurrent, isDFTNull, setALIAS, setALWNULL, setCOLHDG, setDataType, setDDSName, setFieldName, setKeyFieldFunctions, setLayoutAlignment, setLayoutAttributes, setLayoutLength, setREFFIL, setREFFLD, setREFFMT, setREFLIB, setTEXT
public HexFieldDescription()
public HexFieldDescription(AS400ByteArray dataType, java.lang.String name)
dataType
- Describes the field and provides
the conversion capability for the contents of the field.name
- The name of the field.public HexFieldDescription(AS400ByteArray dataType, java.lang.String name, java.lang.String ddsName)
dataType
- Describes the field and provides
the conversion capability for the contents of the field.name
- The name of the field.ddsName
- The DDS name of this field. This is the
name of the field as it would appear in a DDS description of the
field. The length of ddsName must be 10 characters or less.public int getVARLEN()
public boolean isVariableLength()
isVariableLength
in interface VariableLengthFieldDescription
public void setDataType(AS400ByteArray dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDFT(byte[] defaultValue)
defaultValue
- The default value for this
field. The length of defaultValue
must be greater than zero.
To set a default value of *NULL, use the setDFTNull() method.public void setDFTNull()
public void setVariableLength(boolean value)
setVariableLength
in interface VariableLengthFieldDescription
value
- true if the field is a variable-length field; false otherwise.public void setVARLEN(int varLen)
varLen
- The value to specify for the VARLEN keyword for this field.
The varLen cannot be less than zero.