Package org.apache.ibatis.type
Class ClobReaderTypeHandler
- java.lang.Object
-
- org.apache.ibatis.type.TypeReference<T>
-
- org.apache.ibatis.type.BaseTypeHandler<java.io.Reader>
-
- org.apache.ibatis.type.ClobReaderTypeHandler
-
- All Implemented Interfaces:
TypeHandler<java.io.Reader>
public class ClobReaderTypeHandler extends BaseTypeHandler<java.io.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 java.io.Reader
getNullableResult(java.sql.CallableStatement cs, int columnIndex)
Get aReader
that corresponds to a specified column index fromCallableStatement
.java.io.Reader
getNullableResult(java.sql.ResultSet rs, int columnIndex)
Get aReader
that corresponds to a specified column index fromResultSet
.java.io.Reader
getNullableResult(java.sql.ResultSet rs, java.lang.String columnName)
Get aReader
that corresponds to a specified column name fromResultSet
.void
setNonNullParameter(java.sql.PreparedStatement ps, int i, java.io.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(java.sql.PreparedStatement ps, int i, java.io.Reader parameter, JdbcType jdbcType) throws java.sql.SQLException
Set aReader
intoPreparedStatement
.- Specified by:
setNonNullParameter
in classBaseTypeHandler<java.io.Reader>
- Throws:
java.sql.SQLException
- See Also:
PreparedStatement.setClob(int, Reader)
-
getNullableResult
public java.io.Reader getNullableResult(java.sql.ResultSet rs, java.lang.String columnName) throws java.sql.SQLException
Get aReader
that corresponds to a specified column name fromResultSet
.- Specified by:
getNullableResult
in classBaseTypeHandler<java.io.Reader>
columnName
- Colunm name, when configurationuseColumnLabel
isfalse
- Throws:
java.sql.SQLException
- See Also:
ResultSet.getClob(String)
-
getNullableResult
public java.io.Reader getNullableResult(java.sql.ResultSet rs, int columnIndex) throws java.sql.SQLException
Get aReader
that corresponds to a specified column index fromResultSet
.- Specified by:
getNullableResult
in classBaseTypeHandler<java.io.Reader>
- Throws:
java.sql.SQLException
- See Also:
ResultSet.getClob(int)
-
getNullableResult
public java.io.Reader getNullableResult(java.sql.CallableStatement cs, int columnIndex) throws java.sql.SQLException
Get aReader
that corresponds to a specified column index fromCallableStatement
.- Specified by:
getNullableResult
in classBaseTypeHandler<java.io.Reader>
- Throws:
java.sql.SQLException
- See Also:
CallableStatement.getClob(int)
-
-