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 Reader
getNullableResult(CallableStatement cs, int columnIndex)
Get aReader
that corresponds to a specified column index fromCallableStatement
.Reader
getNullableResult(ResultSet rs, int columnIndex)
Reader
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
-
-
-
-
Method Detail
-
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:
PreparedStatement.setClob(int, Reader)
-
getNullableResult
public Reader getNullableResult(ResultSet rs, String columnName) throws SQLException
- 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:
ResultSet.getClob(String)
-
getNullableResult
public Reader getNullableResult(ResultSet rs, int columnIndex) throws SQLException
- Specified by:
getNullableResult
in classBaseTypeHandler<Reader>
- Throws:
SQLException
- See Also:
ResultSet.getClob(int)
-
getNullableResult
public Reader getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
Get aReader
that corresponds to a specified column index fromCallableStatement
.- Specified by:
getNullableResult
in classBaseTypeHandler<Reader>
- Throws:
SQLException
- See Also:
CallableStatement.getClob(int)
-
-