public abstract class BaseJsonTypeHandler<T>
extends org.apache.ibatis.type.BaseTypeHandler<T>
| Constructor and Description |
|---|
BaseJsonTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
T |
getNullableResult(CallableStatement cs,
int columnIndex) |
T |
getNullableResult(ResultSet rs,
int columnIndex) |
T |
getNullableResult(ResultSet rs,
String columnName) |
protected abstract T |
parseJson(String json) |
void |
setNonNullParameter(PreparedStatement ps,
int i,
T parameter,
org.apache.ibatis.type.JdbcType jdbcType) |
protected abstract String |
toJson(T object) |
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>SQLExceptionpublic T getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>SQLExceptionpublic T getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>SQLExceptionpublic T getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T>SQLExceptionCopyright © 2024. All rights reserved.