Package com.imyeyu.spring.handler
Class JsonNodeTypeHandler
java.lang.Object
org.apache.ibatis.type.TypeReference<com.fasterxml.jackson.databind.JsonNode>
org.apache.ibatis.type.BaseTypeHandler<com.fasterxml.jackson.databind.JsonNode>
com.imyeyu.spring.handler.JsonNodeTypeHandler
- All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<com.fasterxml.jackson.databind.JsonNode>
@MappedTypes(com.fasterxml.jackson.databind.JsonNode.class)
@MappedJdbcTypes({VARCHAR,CLOB,LONGVARCHAR})
public class JsonNodeTypeHandler
extends org.apache.ibatis.type.BaseTypeHandler<com.fasterxml.jackson.databind.JsonNode>
- Since:
- 2026-03-16 15:42
- Author:
- 夜雨
-
Field Summary
Fields inherited from class org.apache.ibatis.type.BaseTypeHandler
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodegetNullableResult(CallableStatement cs, int columnIndex) com.fasterxml.jackson.databind.JsonNodegetNullableResult(ResultSet rs, int columnIndex) com.fasterxml.jackson.databind.JsonNodegetNullableResult(ResultSet rs, String columnName) voidsetNonNullParameter(PreparedStatement ps, int i, com.fasterxml.jackson.databind.JsonNode parameter, org.apache.ibatis.type.JdbcType jdbcType) Methods inherited from class org.apache.ibatis.type.BaseTypeHandler
getResult, getResult, getResult, setConfiguration, setParameterMethods inherited from class org.apache.ibatis.type.TypeReference
getRawType, toString
-
Constructor Details
-
JsonNodeTypeHandler
public JsonNodeTypeHandler()
-
-
Method Details
-
setNonNullParameter
public void setNonNullParameter(PreparedStatement ps, int i, com.fasterxml.jackson.databind.JsonNode parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException - Specified by:
setNonNullParameterin classorg.apache.ibatis.type.BaseTypeHandler<com.fasterxml.jackson.databind.JsonNode>- Throws:
SQLException
-
getNullableResult
public com.fasterxml.jackson.databind.JsonNode getNullableResult(ResultSet rs, String columnName) throws SQLException - Specified by:
getNullableResultin classorg.apache.ibatis.type.BaseTypeHandler<com.fasterxml.jackson.databind.JsonNode>- Throws:
SQLException
-
getNullableResult
public com.fasterxml.jackson.databind.JsonNode getNullableResult(ResultSet rs, int columnIndex) throws SQLException - Specified by:
getNullableResultin classorg.apache.ibatis.type.BaseTypeHandler<com.fasterxml.jackson.databind.JsonNode>- Throws:
SQLException
-
getNullableResult
public com.fasterxml.jackson.databind.JsonNode getNullableResult(CallableStatement cs, int columnIndex) throws SQLException - Specified by:
getNullableResultin classorg.apache.ibatis.type.BaseTypeHandler<com.fasterxml.jackson.databind.JsonNode>- Throws:
SQLException
-