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