Class Jackson3JsonFormatMapper
java.lang.Object
org.hibernate.type.format.AbstractJsonFormatMapper
org.hibernate.type.format.jackson.Jackson3JsonFormatMapper
- All Implemented Interfaces:
FormatMapper
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJackson3JsonFormatMapper(FormatMapperCreationContext creationContext) Jackson3JsonFormatMapper(tools.jackson.databind.json.JsonMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescription<T> TfromString(CharSequence charSequence, Type type) <T> TreadFromSource(JavaType<T> javaType, Object source, WrapperOptions options) booleansupportsSourceType(Class<?> sourceType) Checks that this mapper supports a type as a source type.booleansupportsTargetType(Class<?> targetType) Checks that this mapper supports a type as a target type.<T> String<T> voidwriteToTarget(T value, JavaType<T> javaType, Object target, WrapperOptions options) Methods inherited from class AbstractJsonFormatMapper
fromString, toString
-
Field Details
-
SHORT_NAME
- See Also:
-
-
Constructor Details
-
Jackson3JsonFormatMapper
public Jackson3JsonFormatMapper() -
Jackson3JsonFormatMapper
-
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
Description copied from interface:FormatMapperChecks that this mapper supports a type as a source type.- Parameters:
sourceType- the source type- Returns:
trueif the type is supported, false otherwise.
-
supportsTargetType
Description copied from interface:FormatMapperChecks that this mapper supports a type as a target type.- Parameters:
targetType- the target type- Returns:
trueif the type is supported, false otherwise.
-
fromString
- Specified by:
fromStringin classAbstractJsonFormatMapper
-
toString
- Specified by:
toStringin classAbstractJsonFormatMapper
-