public class TimeFieldDescription extends FieldDescription implements java.io.Serializable
ALIGN_LEFT, ALIGN_RIGHT
Constructor and Description |
---|
TimeFieldDescription()
Constructs a TimeFieldDescription object.
|
TimeFieldDescription(AS400Text dataType,
java.lang.String name)
Constructs a TimeFieldDescription object.
|
TimeFieldDescription(AS400Text dataType,
java.lang.String name,
java.lang.String ddsName)
Constructs a TimeFieldDescription object.
|
TimeFieldDescription(AS400Time dataType,
java.lang.String name)
Constructs a TimeFieldDescription object.
|
TimeFieldDescription(AS400Time dataType,
java.lang.String name,
java.lang.String ddsName)
Constructs a TimeFieldDescription object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTIMFMT()
Returns the value specified for the TIMFMT keyword for this field.
|
java.lang.String |
getTIMSEP()
Returns the value specified for the TIMSEP keyword for this field.
|
void |
setDataType(AS400Text dataType)
Sets the AS400DataType object describing this field.
|
void |
setDataType(AS400Time dataType)
Sets the AS400DataType object describing this field.
|
void |
setDFT(java.lang.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.
|
void |
setTIMFMT(java.lang.String timeFormat)
Sets the value to specify for the TIMFMT keyword for this field.
|
void |
setTIMSEP(java.lang.String separator)
Sets the value to specify for the TIMSEP keyword for 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 TimeFieldDescription()
public TimeFieldDescription(AS400Text 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 TimeFieldDescription(AS400Text dataType, java.lang.String name, java.lang.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 TimeFieldDescription(AS400Time 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 TimeFieldDescription(AS400Time dataType, java.lang.String name, java.lang.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 java.lang.String getTIMFMT()
public java.lang.String getTIMSEP()
public void setDataType(AS400Text dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDataType(AS400Time dataType)
dataType
- The AS400DataType that describes this field. The dataType
cannot be null.public void setDFT(java.lang.String 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 setDFTCurrent()
public void setDFTNull()
public void setTIMFMT(java.lang.String timeFormat)
timeFormat
- The value to specify for TIMFMT for
this field. The timeFormat cannot be null.public void setTIMSEP(java.lang.String separator)
separator
- The value to specify for TIMSEP for this field.
A null value indicates "no separator".