public class MaxTypeDATE extends MaxType
| Constructor and Description |
|---|
MaxTypeDATE(java.util.Locale locale)
Construct null value of specified type
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
asDate()
Return as a Date object Returns null if value is null.
|
java.lang.String |
asLocaleString()
Return as a locale sensitive string using the default timeZone and locale
Returns "" if value is null.
|
java.lang.String |
asLocaleString(java.util.Locale l)
Return as a locale sensitive string using the specified TimeZone and Locale
Returns "" if value is null.
|
java.lang.String |
asLocaleString(java.util.Locale l,
java.util.TimeZone tz)
Return as a locale sensitive string using the specified TimeZone and Locale
Returns "" if value is null.
|
java.lang.String |
asString()
Return as a string.
|
java.lang.Object |
clone()
Clone the object.
|
boolean |
equals(java.lang.Object o)
Compares two MaxTypes.
|
int |
getType()
Get the current type
|
void |
setValue(java.util.Date value)
Set the value to the specified value.
|
void |
setValue(MaxType value) |
void |
setValue(java.lang.String value)
Set the value to the specified value.
|
asBoolean, asBytes, asDouble, asFloat, asInt, asLong, createMaxType, createMaxType, getAttributeName, getMaxLength, getObjectName, getScale, isNull, overrideStringData, setAftercheckLengthAndScale, setAttributeName, setMaxLength, setObjectName, setScale, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, toStringpublic MaxTypeDATE(java.util.Locale locale)
public void setValue(java.lang.String value)
throws MXException
setValue in class MaxTypeMXExceptionpublic void setValue(java.util.Date value)
throws MXException
setValue in class MaxTypeMXExceptionpublic java.lang.String asString()
public java.lang.String asLocaleString(java.util.Locale l)
asLocaleString in class MaxTypepublic java.lang.String asLocaleString(java.util.Locale l,
java.util.TimeZone tz)
asLocaleString in class MaxTypepublic java.lang.String asLocaleString()
asLocaleString in class MaxTypepublic java.util.Date asDate()
throws MXException
asDate in class MaxTypeMXExceptionpublic void setValue(MaxType value) throws MXException
setValue in class MaxTypeMXExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object