Class JavaSqlTimeSerializer

All Implemented Interfaces:
JsonFormatVisitable

public class JavaSqlTimeSerializer extends StdScalarSerializer<Time>

NOTE: name was SqlTimeSerializer in Jackson 2.x

  • Field Details

  • Constructor Details

    • JavaSqlTimeSerializer

      public JavaSqlTimeSerializer()
  • Method Details

    • serialize

      public void serialize(Time value, tools.jackson.core.JsonGenerator g, SerializationContext provider) throws tools.jackson.core.JacksonException
      Description copied from class: ValueSerializer
      Method that can be called to ask implementation to serialize values of type this serializer handles.
      Specified by:
      serialize in class StdSerializer<Time>
      Parameters:
      value - Value to serialize; can not be null.
      g - Generator used to output resulting Json content
      provider - Context that can be used to get serializers for serializing Objects value contains, if any.
      Throws:
      tools.jackson.core.JacksonException
    • acceptJsonFormatVisitor

      public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
      Description copied from class: StdSerializer
      Default implementation specifies no format. This behavior is usually overriden by custom serializers.
      Specified by:
      acceptJsonFormatVisitor in interface JsonFormatVisitable
      Overrides:
      acceptJsonFormatVisitor in class StdScalarSerializer<Time>
      typeHint - Type of element (entity like property) being visited