Package org.apache.ibatis.type
Class BlobInputStreamTypeHandler
java.lang.Object
org.apache.ibatis.type.TypeReference<T>
org.apache.ibatis.type.BaseTypeHandler<InputStream>
org.apache.ibatis.type.BlobInputStreamTypeHandler
- All Implemented Interfaces:
TypeHandler<InputStream>
- 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 anInputStream
that corresponds to a specified column index fromCallableStatement
.getNullableResult
(ResultSet rs, int columnIndex) Get anInputStream
that corresponds to a specified column index fromResultSet
.getNullableResult
(ResultSet rs, String columnName) Get anInputStream
that corresponds to a specified column name fromResultSet
.void
setNonNullParameter
(PreparedStatement ps, int i, InputStream parameter, JdbcType jdbcType) Set anInputStream
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
-
BlobInputStreamTypeHandler
public BlobInputStreamTypeHandler()
-
-
Method Details
-
setNonNullParameter
public void setNonNullParameter(PreparedStatement ps, int i, InputStream parameter, JdbcType jdbcType) throws SQLException Set anInputStream
intoPreparedStatement
.- Specified by:
setNonNullParameter
in classBaseTypeHandler<InputStream>
- Throws:
SQLException
- See Also:
-
getNullableResult
Get anInputStream
that corresponds to a specified column name fromResultSet
.- Specified by:
getNullableResult
in classBaseTypeHandler<InputStream>
- Parameters:
rs
- the rscolumnName
- Column name, when configurationuseColumnLabel
isfalse
- Returns:
- the nullable result
- Throws:
SQLException
- the SQL exception- See Also:
-
getNullableResult
Get anInputStream
that corresponds to a specified column index fromResultSet
.- Specified by:
getNullableResult
in classBaseTypeHandler<InputStream>
- Throws:
SQLException
- See Also:
-
getNullableResult
Get anInputStream
that corresponds to a specified column index fromCallableStatement
.- Specified by:
getNullableResult
in classBaseTypeHandler<InputStream>
- Throws:
SQLException
- See Also:
-