Package org.hibernate.dialect
Class JsonHelper
java.lang.Object
org.hibernate.dialect.JsonHelper
A Helper for serializing and deserializing JSON, based on an
EmbeddableMappingType
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <X> X
arrayFromString
(JavaType<X> javaType, JdbcType elementJdbcType, String string, WrapperOptions options) static String
arrayToString
(MappingType elementMappingType, Object[] values, WrapperOptions options) static String
arrayToString
(JavaType<?> elementJavaType, JdbcType elementJdbcType, Object[] values, WrapperOptions options) static <X> X
fromString
(EmbeddableMappingType embeddableMappingType, String string, boolean returnEmbeddable, WrapperOptions options) static String
toString
(EmbeddableMappingType embeddableMappingType, Object value, WrapperOptions options)
-
Constructor Details
-
JsonHelper
public JsonHelper()
-
-
Method Details
-
toString
public static String toString(EmbeddableMappingType embeddableMappingType, Object value, WrapperOptions options) -
arrayToString
public static String arrayToString(MappingType elementMappingType, Object[] values, WrapperOptions options) -
arrayToString
public static String arrayToString(JavaType<?> elementJavaType, JdbcType elementJdbcType, Object[] values, WrapperOptions options) -
fromString
public static <X> X fromString(EmbeddableMappingType embeddableMappingType, String string, boolean returnEmbeddable, WrapperOptions options) throws SQLException - Throws:
SQLException
-
arrayFromString
public static <X> X arrayFromString(JavaType<X> javaType, JdbcType elementJdbcType, String string, WrapperOptions options) throws SQLException - Throws:
SQLException
-