psdi.util

Class MaxTypeDATETIME

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class MaxTypeDATETIME
    extends MaxTypeDATE
    See Also:
    Serialized Form
    • Constructor Detail

      • MaxTypeDATETIME

        public MaxTypeDATETIME(java.util.Locale locale,
                               java.util.TimeZone tz)
        Construct null value of specified type
    • Method Detail

      • getType

        public int getType()
        Get the current type
        Overrides:
        getType in class MaxTypeDATE
      • setValue

        public void setValue(java.lang.String value)
                      throws MXException
        Set the value to the specified value. Throws Exception if cannot be converted to current type.
        Overrides:
        setValue in class MaxTypeDATE
        Throws:
        MXException
      • setValue

        public void setValue(java.util.Date value)
                      throws MXException
        Set the value to the specified value. Throws Exception if cannot be converted to current type.
        Overrides:
        setValue in class MaxTypeDATE
        Throws:
        MXException
      • asLocaleString

        public 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.
        Overrides:
        asLocaleString in class MaxTypeDATE
      • asLocaleString

        public java.lang.String asLocaleString()
        Return as a locale sensitive string using the default timeZone and locale Returns "" if value is null.
        Overrides:
        asLocaleString in class MaxTypeDATE
      • asDate

        public java.util.Date asDate()
                              throws MXException
        Return as a Date object Returns null if value is null. Throws Exception if cannot be returned as this type.
        Overrides:
        asDate in class MaxTypeDATE
        Throws:
        MXException
      • clone

        public java.lang.Object clone()
        Clone the object.
        Overrides:
        clone in class MaxTypeDATE