JsonSqlType

class JsonSqlType<T : Any>(val objectMapper: ObjectMapper, val javaType: JavaType) : SqlType<T> (source)

SqlType implementation that provides JSON data type support via Jackson framework.

Constructors

Link copied to clipboard
constructor(typeRef: TypeReference<T>)
constructor(objectMapper: ObjectMapper, typeRef: TypeReference<T>)
constructor(objectMapper: ObjectMapper, javaType: JavaType)

Properties

Link copied to clipboard
val javaType: JavaType

the generic type information represented as Jackson's JavaType.

Link copied to clipboard
val objectMapper: ObjectMapper

the object mapper used to serialize column values to JSON strings and deserialize them.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun getResult(rs: ResultSet, index: Int): T?
open fun getResult(rs: ResultSet, columnLabel: String): T?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun setParameter(ps: PreparedStatement, index: Int, parameter: T?)
Link copied to clipboard
open fun <R : Any> transform(fromUnderlyingValue: (T) -> R, toUnderlyingValue: (R) -> T): SqlType<R>