api-docs / org.ktorm.jackson / JsonSqlType
JsonSqlType
class JsonSqlType<T : Any> : SqlType<T>
(source code)SqlType implementation that provides JSON data type support via Jackson framework.
Constructors
Name | Summary |
---|---|
JsonSqlType(objectMapper: ObjectMapper, javaType: JavaType) SqlType implementation that provides JSON data type support via Jackson framework. |
Properties
Name | Summary |
---|---|
val javaType: JavaType the generic type information represented as Jackson’s JavaType. | |
val objectMapper: ObjectMapper the object mapper used to serialize column values to JSON strings and deserialize them. |
Inherited Properties
Name | Summary |
---|---|
val typeCode: Int a constant value defined in java.sql.Types to identify JDBC types. | |
val typeName: String the name of the type in specific databases, such as |
Functions
Name | Summary |
---|---|
Obtain a result from a given ResultSet by index, the result may be null. | |
fun doSetParameter( Set the parameter to a given PreparedStatement, the parameter can’t be null. | |
fun setParameter( Set the nullable parameter to a given PreparedStatement. |
Inherited Functions
Name | Summary |
---|---|
Indicates whether some other object is “equal to” this SQL type. | |
Obtain a result from a given ResultSet by index. Obtain a result from a given ResultSet by columnLabel. | |
open fun hashCode(): Int Return a hash code value for this SQL type. | |
open fun <R : Any> transform( Transform this SqlType to another. The returned SqlType has the same typeCode and typeName as the |
Extension Functions
Name | Summary |
---|---|
infix fun <T : Any> T.eq( Equal operator, translated to | |
infix fun <T : Any> T.neq( Not-equal operator, translated to | |
infix fun <T : Any> T.notEq( Not-equal operator, translated to |