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