Class JacksonOsonFormatMapper
java.lang.Object
org.hibernate.type.format.AbstractJsonFormatMapper
org.hibernate.type.format.jackson.JacksonOsonFormatMapper
- All Implemented Interfaces:
FormatMapper
Implementation of FormatMapper for Oracle OSON support
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new JacksonOsonFormatMapperJacksonOsonFormatMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) JacksonOsonFormatMapper(FormatMapperCreationContext creationContext) -
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 org.hibernate.type.format.AbstractJsonFormatMapper
fromString, toString
-
Field Details
-
SHORT_NAME
- See Also:
-
-
Constructor Details
-
JacksonOsonFormatMapper
public JacksonOsonFormatMapper()Creates a new JacksonOsonFormatMapper -
JacksonOsonFormatMapper
-
JacksonOsonFormatMapper
public JacksonOsonFormatMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
writeToTarget
public <T> void writeToTarget(T value, JavaType<T> javaType, Object target, WrapperOptions options) throws IOException - Throws:
IOException
-
readFromSource
public <T> T readFromSource(JavaType<T> javaType, Object source, WrapperOptions options) throws IOException - Throws:
IOException
-
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
-