All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.ZonedDecimalFieldDescription

java.lang.Object
   |
   +----com.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: Examples


Constructor Index

 o ZonedDecimalFieldDescription()
Constructs a ZonedDecimalFieldDescription object.
 o ZonedDecimalFieldDescription(AS400ZonedDecimal, String)
Constructs a ZonedDecimalFieldDescription object.
 o ZonedDecimalFieldDescription(AS400ZonedDecimal, String, String)
Constructs a ZonedDecimalFieldDescription object.

Method Index

 o getDecimalPositions()
Returns the number of digits after the decimal point for this field.
 o setDataType(AS400ZonedDecimal)
Sets the AS400DataType object describing this field.
 o setDFT(BigDecimal)
Sets the value for the DFT keyword for this field.

Constructors

 o ZonedDecimalFieldDescription
 public ZonedDecimalFieldDescription()
Constructs a ZonedDecimalFieldDescription object.

 o ZonedDecimalFieldDescription
 public ZonedDecimalFieldDescription(AS400ZonedDecimal dataType,
                                     String name)
Constructs a ZonedDecimalFieldDescription object. It uses the data type and name of the field specified. The number of digits and the number of decimal positions will be determined from dataType.

Parameters:
dataType - Describes the field and provides the conversion capability for the contents of the field.
name - The name of the field.
 o ZonedDecimalFieldDescription
 public ZonedDecimalFieldDescription(AS400ZonedDecimal dataType,
                                     String name,
                                     String ddsName)
Constructs a ZonedDecimalFieldDescription object. It uses the data type, name, and DDS name of the field specified. The number of digits and the number of decimal positions will be determined from dataType.

Parameters:
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.

Methods

 o getDecimalPositions
 public int getDecimalPositions()
Returns the number of digits after the decimal point for this field.

Returns:
The number of digits after the decimal point.
 o setDataType
 public void setDataType(AS400ZonedDecimal dataType)
Sets the AS400DataType object describing this field.

Parameters:
dataType - The AS400DataType that describes this field. The dataType cannot be null.
 o setDFT
 public void setDFT(BigDecimal defaultValue)
Sets the value for the DFT keyword for this field.

Parameters:
defaultValue - The default value for this field. The defaultValue cannot be null.

All Packages  Class Hierarchy  This Package  Previous  Next  Index