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>
public class BlobInputStreamTypeHandler extends BaseTypeHandler<InputStream>
- Since:
 - 3.4.0
 - Author:
 - Kazuki Shimizu
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.apache.ibatis.type.BaseTypeHandler
configuration 
 - 
 
- 
Constructor Summary
Constructors Constructor Description BlobInputStreamTypeHandler() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetNullableResult(CallableStatement cs, int columnIndex)Get anInputStreamthat corresponds to a specified column index fromCallableStatement.InputStreamgetNullableResult(ResultSet rs, int columnIndex)Get anInputStreamthat corresponds to a specified column index fromResultSet.InputStreamgetNullableResult(ResultSet rs, String columnName)Get anInputStreamthat corresponds to a specified column name fromResultSet.voidsetNonNullParameter(PreparedStatement ps, int i, InputStream parameter, JdbcType jdbcType)Set anInputStreamintoPreparedStatement.- 
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, InputStream parameter, JdbcType jdbcType) throws SQLException
Set anInputStreamintoPreparedStatement.- Specified by:
 setNonNullParameterin classBaseTypeHandler<InputStream>- Throws:
 SQLException- See Also:
 PreparedStatement.setBlob(int, InputStream)
 
- 
getNullableResult
public InputStream getNullableResult(ResultSet rs, String columnName) throws SQLException
Get anInputStreamthat corresponds to a specified column name fromResultSet.- Specified by:
 getNullableResultin classBaseTypeHandler<InputStream>- Parameters:
 rs- the rscolumnName- Column name, when configurationuseColumnLabelisfalse- Returns:
 - the nullable result
 - Throws:
 SQLException- the SQL exception- See Also:
 ResultSet.getBlob(String)
 
- 
getNullableResult
public InputStream getNullableResult(ResultSet rs, int columnIndex) throws SQLException
Get anInputStreamthat corresponds to a specified column index fromResultSet.- Specified by:
 getNullableResultin classBaseTypeHandler<InputStream>- Throws:
 SQLException- See Also:
 ResultSet.getBlob(int)
 
- 
getNullableResult
public InputStream getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
Get anInputStreamthat corresponds to a specified column index fromCallableStatement.- Specified by:
 getNullableResultin classBaseTypeHandler<InputStream>- Throws:
 SQLException- See Also:
 CallableStatement.getBlob(int)
 
 - 
 
 -