Package org.hibernate.type.format
Class AbstractJsonFormatMapper
java.lang.Object
org.hibernate.type.format.AbstractJsonFormatMapper
- All Implemented Interfaces:
FormatMapper
- Direct Known Subclasses:
JacksonJsonFormatMapper
,JsonBJsonFormatMapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <T> T
fromString
(CharSequence charSequence, Type type) final <T> T
fromString
(CharSequence charSequence, JavaType<T> javaType, WrapperOptions wrapperOptions) Deserializes an object from the character sequence.protected abstract <T> String
final <T> String
toString
(T value, JavaType<T> javaType, WrapperOptions wrapperOptions) Serializes the object to a string.
-
Constructor Details
-
AbstractJsonFormatMapper
public AbstractJsonFormatMapper()
-
-
Method Details
-
fromString
public final <T> T fromString(CharSequence charSequence, JavaType<T> javaType, WrapperOptions wrapperOptions) Description copied from interface:FormatMapper
Deserializes an object from the character sequence.- Specified by:
fromString
in interfaceFormatMapper
-
toString
Description copied from interface:FormatMapper
Serializes the object to a string.- Specified by:
toString
in interfaceFormatMapper
-
fromString
-
toString
-