|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.access.FieldDescription
com.ibm.as400.access.ZonedDecimalFieldDescription
public class ZonedDecimalFieldDescription extends FieldDescription implements Serializable
The ZonedDecimalFieldDescription class represents the description of the data in a zoned decimal field. The ZonedDecimalFieldDescription class allows:
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class com.ibm.as400.access.FieldDescription |
|---|
ALIGN_LEFT, ALIGN_RIGHT |
| Constructor and Description |
|---|
ZonedDecimalFieldDescription()
Constructs a ZonedDecimalFieldDescription object. |
ZonedDecimalFieldDescription(AS400ZonedDecimal dataType,
String name)
Constructs a ZonedDecimalFieldDescription object. |
ZonedDecimalFieldDescription(AS400ZonedDecimal dataType,
String name,
String ddsName)
Constructs a ZonedDecimalFieldDescription object. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDecimalPositions()
Returns the number of digits after the decimal point for this field. |
void |
setDataType(AS400ZonedDecimal dataType)
Sets the AS400DataType object describing this field. |
void |
setDFT(BigDecimal 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. |
| Methods inherited from class com.ibm.as400.access.FieldDescription |
|---|
getALIAS, getALWNULL, getCOLHDG, getDataType, getDDSName, getDFT, getDFTCurrentValue, getFieldName, getKeyFieldFunctions, getLayoutAlignment, getLayoutLength, getLength, getREFFLD, getTEXT, isDFTCurrent, isDFTNull, setALIAS, setALWNULL, setCOLHDG, setDataType, setDDSName, setFieldName, setKeyFieldFunctions, setLayoutAlignment, setLayoutAttributes, setLayoutLength, setREFFLD, setTEXT |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZonedDecimalFieldDescription()
public ZonedDecimalFieldDescription(AS400ZonedDecimal dataType,
String name)
dataType - Describes the field and provides
the conversion capability for the contents of the field.name - The name of the field.
public ZonedDecimalFieldDescription(AS400ZonedDecimal dataType,
String name,
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.| Method Detail |
|---|
public int getDecimalPositions()
public void setDataType(AS400ZonedDecimal dataType)
dataType - The AS400DataType that describes this field. The dataType
cannot be null.public void setDFT(BigDecimal 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||