T - - type of object you are converting to/frompublic class JsonTypeHandler<T>
extends org.apache.ibatis.type.BaseTypeHandler<T>
| Constructor and Description |
|---|
JsonTypeHandler(Class<T> clazz,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
T |
getNullableResult(CallableStatement cs,
int columnIndex)
Retrieve this custom Json object
|
T |
getNullableResult(ResultSet rs,
int columnIndex)
Retrieve this custom Json object
|
T |
getNullableResult(ResultSet rs,
String columnName)
Retrieve this custom Json object
|
void |
setNonNullParameter(PreparedStatement ps,
int i,
T parameter,
org.apache.ibatis.type.JdbcType jdbcType)
Convert this object to JSON
|
public void setNonNullParameter(PreparedStatement ps, int i, T parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setNonNullParameter in class org.apache.ibatis.type.BaseTypeHandler<T>ps - i - parameter - jdbcType - SQLExceptionpublic T getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>rs - columnName - SQLExceptionpublic T getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>rs - columnIndex - SQLExceptionpublic T getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>cs - columnIndex - SQLExceptionCopyright © 2019. All rights reserved.