Class Jackson3JsonFormatMapper

java.lang.Object
org.hibernate.type.format.AbstractJsonFormatMapper
org.hibernate.type.format.jackson.Jackson3JsonFormatMapper
All Implemented Interfaces:
FormatMapper

public final class Jackson3JsonFormatMapper extends AbstractJsonFormatMapper
  • Field Details

  • Constructor Details

    • Jackson3JsonFormatMapper

      public Jackson3JsonFormatMapper()
    • Jackson3JsonFormatMapper

      public Jackson3JsonFormatMapper(FormatMapperCreationContext creationContext)
    • Jackson3JsonFormatMapper

      public Jackson3JsonFormatMapper(tools.jackson.databind.json.JsonMapper jsonMapper)
  • Method Details

    • writeToTarget

      public <T> void writeToTarget(T value, JavaType<T> javaType, Object target, WrapperOptions options) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • readFromSource

      public <T> T readFromSource(JavaType<T> javaType, Object source, WrapperOptions options) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • supportsSourceType

      public boolean supportsSourceType(Class<?> sourceType)
      Description copied from interface: FormatMapper
      Checks that this mapper supports a type as a source type.
      Parameters:
      sourceType - the source type
      Returns:
      true if the type is supported, false otherwise.
    • supportsTargetType

      public boolean supportsTargetType(Class<?> targetType)
      Description copied from interface: FormatMapper
      Checks that this mapper supports a type as a target type.
      Parameters:
      targetType - the target type
      Returns:
      true if the type is supported, false otherwise.
    • fromString

      public <T> T fromString(CharSequence charSequence, Type type)
      Specified by:
      fromString in class AbstractJsonFormatMapper
    • toString

      public <T> String toString(T value, Type type)
      Specified by:
      toString in class AbstractJsonFormatMapper