|
|||||||||
| 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.DateFieldDescription
public class DateFieldDescription
Represents the description of the data in a date field. It allows:
| Field Summary |
|---|
| Fields inherited from class com.ibm.as400.access.FieldDescription |
|---|
ALIGN_LEFT, ALIGN_RIGHT |
| Constructor Summary | |
|---|---|
DateFieldDescription()
Constructs a DateFieldDescription object. |
|
DateFieldDescription(AS400Date dataType,
String name)
Constructs a DateFieldDescription object. |
|
DateFieldDescription(AS400Date dataType,
String name,
String ddsName)
Constructs a DateFieldDescription object. |
|
DateFieldDescription(AS400Text dataType,
String name)
Constructs a DateFieldDescription object. |
|
DateFieldDescription(AS400Text dataType,
String name,
String ddsName)
Constructs a DateFieldDescription object. |
|
| Method Summary | |
|---|---|
String |
getDATFMT()
Returns the value specified for the DATFMT keyword for this field. |
String |
getDATSEP()
Returns the value specified for the DATSEP keyword for this field. |
void |
setDataType(AS400Date dataType)
Sets the AS400DataType object describing this field. |
void |
setDataType(AS400Text dataType)
Sets the AS400DataType object describing this field. |
void |
setDATFMT(String dateFormat)
Sets the value to specify for the DATFMT keyword for this field. |
void |
setDATSEP(String separator)
Sets the value to specify for the DATSEP keyword for this field. |
void |
setDFT(String defaultValue)
Sets the value for the DFT keyword for this field. |
void |
setDFTCurrent()
Sets the default value for this field to be the current date. |
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, getREFFIL, getREFFLD, getREFFMT, getREFLIB, getTEXT, isDFTCurrent, isDFTNull, setALIAS, setALWNULL, setCOLHDG, setDataType, setDDSName, setFieldName, setKeyFieldFunctions, setLayoutAlignment, setLayoutAttributes, setLayoutLength, setREFFIL, setREFFLD, setREFFMT, setREFLIB, setTEXT |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateFieldDescription()
public DateFieldDescription(AS400Text 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 DateFieldDescription(AS400Text 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.
public DateFieldDescription(AS400Date 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 DateFieldDescription(AS400Date 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 String getDATFMT()
public String getDATSEP()
public void setDataType(AS400Text dataType)
dataType - The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400Date dataType)
dataType - The AS400DataType that describes this field. The dataType
cannot be null.public void setDATFMT(String dateFormat)
dateFormat - The value to specify for DATFMT for
this field. The dateFormat cannot be null.public void setDATSEP(String separator)
separator - The value to specify for DATSEP for this field.
A null value indicates "no separator".public void setDFT(String 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 setDFTCurrent()
public void setDFTNull()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||