All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.DateFieldDescription

java.lang.Object
   |
   +----com.ibm.as400.access.FieldDescription
           |
           +----com.ibm.as400.access.DateFieldDescription

public class DateFieldDescription
extends FieldDescription
implements Serializable
The DateFieldDescription class represents the description of the data in a date field. It allows: Examples


Constructor Index

 o DateFieldDescription()
Constructs a DateFieldDescription object.
 o DateFieldDescription(AS400Text, String)
Constructs a DateFieldDescription object.
 o DateFieldDescription(AS400Text, String, String)
Constructs a DateFieldDescription object.

Method Index

 o getDATFMT()
Returns the value specified for the DATFMT keyword for this field.
 o getDATSEP()
Returns the value specified for the DATSEP keyword for this field.
 o setDataType(AS400Text)
Sets the AS400DataType object describing this field.
 o setDATFMT(String)
Sets the value to specify for the DATFMT keyword for this field.
 o setDATSEP(String)
Sets the value to specify for the DATSEP keyword for this field.
 o setDFT(String)
Sets the value for the DFT keyword for this field.

Constructors

 o DateFieldDescription
 public DateFieldDescription()
Constructs a DateFieldDescription object.

 o DateFieldDescription
 public DateFieldDescription(AS400Text dataType,
                             String name)
Constructs a DateFieldDescription object. It uses the specified data type and name of the field. The length of the field will be the length specified on the AS400Text object.

Parameters:
dataType - Describes the field and provides the conversion capability for the contents of the field.
name - The name of the field.
 o DateFieldDescription
 public DateFieldDescription(AS400Text dataType,
                             String name,
                             String ddsName)
Constructs a DateFieldDescription object. It uses the specified data type, name, and DDS name of the field.

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 getDATFMT
 public String getDATFMT()
Returns the value specified for the DATFMT keyword for this field.

Returns:
The value specified for DATFMT for this field. If DATFMT was not specified for this field, an empty string is returned.
 o getDATSEP
 public String getDATSEP()
Returns the value specified for the DATSEP keyword for this field.

Returns:
The value specified for DATSEP for this field. If DATSEP was not specified for this field, an empty string is returned.
 o setDataType
 public void setDataType(AS400Text dataType)
Sets the AS400DataType object describing this field.

Parameters:
dataType - The AS400DataType that describes this field. The dataType cannot be null.
 o setDATFMT
 public void setDATFMT(String dateFormat)
Sets the value to specify for the DATFMT keyword for this field.

Parameters:
dateFormat - The value to specify for DATFMT for this field. The dateFormat cannot be null.
 o setDATSEP
 public void setDATSEP(String dateSeparator)
Sets the value to specify for the DATSEP keyword for this field.

Parameters:
dateSeparator - The value to specify for DATSEP for this field. The dateSeparator cannot be null.
 o setDFT
 public void setDFT(String defaultValue)
Sets the value for the DFT keyword for this field.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index