public class BinaryFieldDescription extends FieldDescription implements java.io.Serializable
As of OS/400 V4R5, DDS supports up to 8-byte (18-digit) binary field descriptions. Using any of the data types that result in a byte length greater than 4 or a number of digits greater than 9 on a release prior to V4R5 may give unexpected results.
ALIGN_LEFT, ALIGN_RIGHT
Constructor and Description |
---|
BinaryFieldDescription()
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400Bin1 dataType,
java.lang.String name)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400Bin1 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400Bin2 dataType,
java.lang.String name)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400Bin2 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400Bin4 dataType,
java.lang.String name)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400Bin4 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400Bin8 dataType,
java.lang.String name)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400Bin8 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400UnsignedBin1 dataType,
java.lang.String name)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400UnsignedBin1 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400UnsignedBin2 dataType,
java.lang.String name)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400UnsignedBin2 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400UnsignedBin4 dataType,
java.lang.String name)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400UnsignedBin4 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400UnsignedBin8 dataType,
java.lang.String name)
Constructs a BinaryFieldDescription object.
|
BinaryFieldDescription(AS400UnsignedBin8 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a BinaryFieldDescription object.
|
Modifier and Type | Method and Description |
---|---|
void |
setDataType(AS400Bin1 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400Bin2 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400Bin4 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400Bin8 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400UnsignedBin1 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400UnsignedBin2 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400UnsignedBin4 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400UnsignedBin8 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDFT(java.math.BigInteger defaultValue)
Sets the value for the DFT keyword for this field.
|
void |
setDFT(java.lang.Byte defaultValue)
Sets the value for the DFT keyword for this field.
|
void |
setDFT(java.lang.Integer defaultValue)
Sets the value for the DFT keyword for this field.
|
void |
setDFT(java.lang.Long defaultValue)
Sets the value for the DFT keyword for this field.
|
void |
setDFT(java.lang.Short 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 |
setLength(int length)
Sets the length of 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 BinaryFieldDescription()
public BinaryFieldDescription(AS400Bin4 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 BinaryFieldDescription(AS400Bin4 dataType, java.lang.String name, java.lang.String ddsName, int length)
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.length
- The number of digits that the field will hold. This is the length of
the field as it would appear in a DDS description. The length
must be greater than 0.public BinaryFieldDescription(AS400UnsignedBin4 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 BinaryFieldDescription(AS400UnsignedBin4 dataType, java.lang.String name, java.lang.String ddsName, int length)
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.length
- The number of digits that the field will hold. This is the length of
the field as it would appear in a DDS description. The length
must be greater than 0.public BinaryFieldDescription(AS400Bin8 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 BinaryFieldDescription(AS400Bin8 dataType, java.lang.String name, java.lang.String ddsName, int length)
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.length
- The number of digits that the field will hold. This is the length of
the field as it would appear in a DDS description. The length
must be greater than 0.public BinaryFieldDescription(AS400UnsignedBin8 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 BinaryFieldDescription(AS400UnsignedBin8 dataType, java.lang.String name, java.lang.String ddsName, int length)
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.length
- The number of digits that the field will hold. This is the length of
the field as it would appear in a DDS description. The length
must be greater than 0.public BinaryFieldDescription(AS400Bin2 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 BinaryFieldDescription(AS400Bin2 dataType, java.lang.String name, java.lang.String ddsName, int length)
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.length
- The number of digits that the field will hold. This is the length of
the field as it would appear in a DDS description. The length
must be greater than 0.public BinaryFieldDescription(AS400UnsignedBin2 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 BinaryFieldDescription(AS400UnsignedBin2 dataType, java.lang.String name, java.lang.String ddsName, int length)
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.length
- The number of digits that the field will hold. This is the length of
the field as it would appear in a DDS description. The length
must be greater than 0.public BinaryFieldDescription(AS400Bin1 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 BinaryFieldDescription(AS400Bin1 dataType, java.lang.String name, java.lang.String ddsName, int length)
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.length
- The number of digits that the field will hold. This is the length of
the field as it would appear in a DDS description. The length
must be greater than 0.public BinaryFieldDescription(AS400UnsignedBin1 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 BinaryFieldDescription(AS400UnsignedBin1 dataType, java.lang.String name, java.lang.String ddsName, int length)
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.length
- The number of digits that the field will hold. This is the length of
the field as it would appear in a DDS description. The length
must be greater than 0.public void setDataType(AS400Bin1 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400UnsignedBin1 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400Bin2 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400UnsignedBin2 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400Bin4 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400UnsignedBin4 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400Bin8 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400UnsignedBin8 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDFT(java.lang.Integer defaultValue)
defaultValue
- The default value for this
field. The defaultValuecannot be null.
To set a default value of *NULL, use the setDFTNull() method.public void setDFT(java.math.BigInteger defaultValue)
defaultValue
- The default value for this
field. The defaultValuecannot be null.
To set a default value of *NULL, use the setDFTNull() method.public void setDFT(java.lang.Long defaultValue)
defaultValue
- The default value for this
field. The defaultValuecannot be null.
To set a default value of *NULL, use the setDFTNull() method.public void setDFT(java.lang.Short defaultValue)
defaultValue
- The default value for this
field. The defaultValuecannot be null.
To set a default value of *NULL, use the setDFTNull() method.public void setDFT(java.lang.Byte defaultValue)
defaultValue
- The default value for this
field. The defaultValuecannot be null.
To set a default value of *NULL, use the setDFTNull() method.public void setDFTNull()
public void setLength(int length)
length
- The length of this field. The length must be greater than zero.