Package org.apache.ibatis.type
Class ClobReaderTypeHandler
- java.lang.Object
 - 
- org.apache.ibatis.type.TypeReference<T>
 - 
- org.apache.ibatis.type.BaseTypeHandler<Reader>
 - 
- org.apache.ibatis.type.ClobReaderTypeHandler
 
 
 
 
- 
- All Implemented Interfaces:
 TypeHandler<Reader>
public class ClobReaderTypeHandler extends BaseTypeHandler<Reader>
- Since:
 - 3.4.0
 - Author:
 - Kazuki Shimizu
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.apache.ibatis.type.BaseTypeHandler
configuration 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ClobReaderTypeHandler() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadergetNullableResult(CallableStatement cs, int columnIndex)Get aReaderthat corresponds to a specified column index fromCallableStatement.ReadergetNullableResult(ResultSet rs, int columnIndex)ReadergetNullableResult(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, setParameter 
- 
Methods inherited from class org.apache.ibatis.type.TypeReference
getRawType, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
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:
 PreparedStatement.setClob(int, Reader)
 
- 
getNullableResult
public Reader getNullableResult(ResultSet rs, String columnName) throws SQLException
- Specified by:
 getNullableResultin classBaseTypeHandler<Reader>- Parameters:
 rs- the rscolumnName- Column name, when configurationuseColumnLabelisfalse- Returns:
 - the nullable result
 - Throws:
 SQLException- the SQL exception- See Also:
 ResultSet.getClob(String)
 
- 
getNullableResult
public Reader getNullableResult(ResultSet rs, int columnIndex) throws SQLException
- Specified by:
 getNullableResultin classBaseTypeHandler<Reader>- Throws:
 SQLException- See Also:
 ResultSet.getClob(int)
 
- 
getNullableResult
public Reader getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
Get aReaderthat corresponds to a specified column index fromCallableStatement.- Specified by:
 getNullableResultin classBaseTypeHandler<Reader>- Throws:
 SQLException- See Also:
 CallableStatement.getClob(int)
 
 - 
 
 -