Class XmlCalendarTimeTypeHandler

    • Constructor Detail

      • XmlCalendarTimeTypeHandler

        public XmlCalendarTimeTypeHandler()
    • Method Detail

      • format

        public java.lang.String format​(java.lang.Object value)
        Description copied from interface: TypeHandler
        Formats a Java object into field text.
        Specified by:
        format in interface TypeHandler
        Specified by:
        format in class AbstractXmlCalendarTypeHandler
        Parameters:
        value - the Java object to format, which may be null
        Returns:
        the formatted field text, or null to indicate the value is not present, or TypeHandler.NIL for XML formatted streams
      • isOutputMilliseconds

        public boolean isOutputMilliseconds()
        Returns whether milliseconds are included when formatting the time.
        Returns:
        true if milliseconds are included when formatting the time
      • setOutputMilliseconds

        public void setOutputMilliseconds​(boolean b)
        Sets whether milliseconds are included when formatting the time. Set to false by default.
        Parameters:
        b - set to true to include milliseconds when formatting the time