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> TfromString(CharSequence charSequence, Type type)<T> TfromString(CharSequence charSequence, JavaType<T> javaType, WrapperOptions wrapperOptions)Deserializes an object from the character sequence.protected abstract <T> StringtoString(T value, Type type)<T> StringtoString(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:FormatMapperDeserializes an object from the character sequence.- Specified by:
fromStringin interfaceFormatMapper
-
toString
public final <T> String toString(T value, JavaType<T> javaType, WrapperOptions wrapperOptions)
Description copied from interface:FormatMapperSerializes the object to a string.- Specified by:
toStringin interfaceFormatMapper
-
fromString
protected abstract <T> T fromString(CharSequence charSequence, Type type)
-
-