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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNullableResult(CallableStatement cs, int columnIndex) Get aReaderthat corresponds to a specified column index fromCallableStatement.getNullableResult(ResultSet rs, int columnIndex) getNullableResult(ResultSet rs, String columnName) voidsetNonNullParameter(PreparedStatement ps, int i, Reader parameter, JdbcType jdbcType) Set aReaderintoPreparedStatement.Methods inherited from class org.apache.ibatis.type.BaseTypeHandler
getResult, getResult, getResult, setConfiguration, setParameterMethods 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 aReaderintoPreparedStatement.- Specified by:
setNonNullParameterin classBaseTypeHandler<Reader>- Throws:
SQLException- See Also:
-
getNullableResult
- Specified by:
getNullableResultin classBaseTypeHandler<Reader>- Parameters:
rs- the rscolumnName- Column name, when configurationuseColumnLabelisfalse- Returns:
- the nullable result
- Throws:
SQLException- the SQL exception- See Also:
-
getNullableResult
- Specified by:
getNullableResultin classBaseTypeHandler<Reader>- Throws:
SQLException- See Also:
-
getNullableResult
Get aReaderthat corresponds to a specified column index fromCallableStatement.- Specified by:
getNullableResultin classBaseTypeHandler<Reader>- Throws:
SQLException- See Also:
-