public class FloatFieldDescription extends FieldDescription implements java.io.Serializable
ALIGN_LEFT, ALIGN_RIGHT
Constructor and Description |
---|
FloatFieldDescription()
Constructs a FloatFieldDescription object.
|
FloatFieldDescription(AS400Float4 dataType,
java.lang.String name)
Constructs a FloatFieldDescription object.
|
FloatFieldDescription(AS400Float4 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a FloatFieldDescription object.
|
FloatFieldDescription(AS400Float4 dataType,
java.lang.String name,
java.lang.String ddsName,
int length,
int decimalPositions)
Constructs a FloatFieldDescription object.
|
FloatFieldDescription(AS400Float8 dataType,
java.lang.String name)
Constructs a FloatFieldDescription object.
|
FloatFieldDescription(AS400Float8 dataType,
java.lang.String name,
java.lang.String ddsName,
int length)
Constructs a FloatFieldDescription object.
|
FloatFieldDescription(AS400Float8 dataType,
java.lang.String name,
java.lang.String ddsName,
int length,
int decimalPositions)
Constructs a FloatFieldDescription object.
|
Modifier and Type | Method and Description |
---|---|
int |
getDecimalPositions()
Returns the number of digits after the decimal point for this field.
|
java.lang.String |
getFLTPCN()
Returns the value specified for the FLTPCN keyword for this field.
|
void |
setDataType(AS400Float4 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400Float8 dataType)
Sets the AS400DataType object describing this field.
|
void |
setDecimalPositions(int decimalPositions)
Sets the number of digits after the decimal point for this field.
|
void |
setDFT(java.lang.Double defaultValue)
Sets the value for the DFT keyword for this field.
|
void |
setDFT(java.lang.Float 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 |
setFLTPCN(java.lang.String floatPrecision)
Sets the value for the FLTPCN keyword 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 FloatFieldDescription()
public FloatFieldDescription(AS400Float8 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 FloatFieldDescription(AS400Float8 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 zero.public FloatFieldDescription(AS400Float8 dataType, java.lang.String name, java.lang.String ddsName, int length, int decimalPositions)
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 zero.decimalPositions
- The number of digits to the right of the decimal point.
The decimalPositions cannot be negative.public FloatFieldDescription(AS400Float4 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 FloatFieldDescription(AS400Float4 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 zero.public FloatFieldDescription(AS400Float4 dataType, java.lang.String name, java.lang.String ddsName, int length, int decimalPositions)
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 zero.decimalPositions
- The number of digits to the right of the decimal point. The
decimalPositions cannot be negative.public int getDecimalPositions()
public java.lang.String getFLTPCN()
public void setDataType(AS400Float4 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400Float8 dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDecimalPositions(int decimalPositions)
decimalPositions
- The number of digits after the decimal point.
The decimalPositions cannot be less than zero.public void setFLTPCN(java.lang.String floatPrecision)
floatPrecision
- The value to set for the FLTPCN keyword for
this field. Possible values are *SINGLE or *DOUBLE.
The floatPrecision cannot be null.public void setDFT(java.lang.Double defaultValue)
defaultValue
- The default value for this
field. The defaultValue cannot be null.
To set a default value of *NULL, use the setDFTNull() method.public void setDFT(java.lang.Float defaultValue)
defaultValue
- The default value for this
field. The defaultValue cannot 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.