Package org.apache.ibatis.type
Class ClobReaderTypeHandler
- All Implemented Interfaces:
TypeHandler<Reader>
- Since:
- 3.4.0
- Author:
- Kazuki Shimizu
-
Field Summary
Fields inherited from class org.apache.ibatis.type.BaseTypeHandler
configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNullableResult
(CallableStatement cs, int columnIndex) Get aReader
that corresponds to a specified column index fromCallableStatement
.getNullableResult
(ResultSet rs, int columnIndex) getNullableResult
(ResultSet rs, String columnName) void
setNonNullParameter
(PreparedStatement ps, int i, Reader parameter, JdbcType jdbcType) Set aReader
intoPreparedStatement
.Methods inherited from class org.apache.ibatis.type.BaseTypeHandler
getResult, getResult, getResult, setConfiguration, setParameter
Methods inherited from class org.apache.ibatis.type.TypeReference
getRawType, toString
-
Constructor Details
-
ClobReaderTypeHandler
public ClobReaderTypeHandler()
-
-
Method Details
-
setNonNullParameter
public void setNonNullParameter(PreparedStatement ps, int i, Reader parameter, JdbcType jdbcType) throws SQLException Set aReader
intoPreparedStatement
.- Specified by:
setNonNullParameter
in classBaseTypeHandler<Reader>
- Throws:
SQLException
- See Also:
-
getNullableResult
- Specified by:
getNullableResult
in classBaseTypeHandler<Reader>
- Parameters:
rs
- the rscolumnName
- Column name, when configurationuseColumnLabel
isfalse
- Returns:
- the nullable result
- Throws:
SQLException
- the SQL exception- See Also:
-
getNullableResult
- Specified by:
getNullableResult
in classBaseTypeHandler<Reader>
- Throws:
SQLException
- See Also:
-
getNullableResult
Get aReader
that corresponds to a specified column index fromCallableStatement
.- Specified by:
getNullableResult
in classBaseTypeHandler<Reader>
- Throws:
SQLException
- See Also:
-