@MappedTypes(value=com.alibaba.fastjson.JSON.class)
@MappedJdbcTypes(value=VARCHAR)
public class MySqlJSONTypeHandler
extends org.apache.ibatis.type.BaseTypeHandler<com.alibaba.fastjson.JSON>
| Constructor and Description |
|---|
MySqlJSONTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.alibaba.fastjson.JSON |
getNullableResult(CallableStatement cs,
int columnIndex) |
com.alibaba.fastjson.JSON |
getNullableResult(ResultSet rs,
int columnIndex)
根据列索引,获取可以为空的结果
|
com.alibaba.fastjson.JSON |
getNullableResult(ResultSet rs,
String columnName)
根据列名,获取可以为空的结果
|
void |
setNonNullParameter(PreparedStatement ps,
int i,
com.alibaba.fastjson.JSON parameter,
org.apache.ibatis.type.JdbcType jdbcType)
设置非空参数
|
public void setNonNullParameter(PreparedStatement ps, int i, com.alibaba.fastjson.JSON parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setNonNullParameter in class org.apache.ibatis.type.BaseTypeHandler<com.alibaba.fastjson.JSON>ps - i - parameter - jdbcType - SQLExceptionpublic com.alibaba.fastjson.JSON getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<com.alibaba.fastjson.JSON>rs - columnName - SQLExceptionpublic com.alibaba.fastjson.JSON getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<com.alibaba.fastjson.JSON>rs - columnIndex - SQLExceptionpublic com.alibaba.fastjson.JSON getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<com.alibaba.fastjson.JSON>SQLExceptionCopyright © 2021. All rights reserved.