Package org.apache.ibatis.type
Class BlobInputStreamTypeHandler
- java.lang.Object
-
- org.apache.ibatis.type.TypeReference<T>
-
- org.apache.ibatis.type.BaseTypeHandler<java.io.InputStream>
-
- org.apache.ibatis.type.BlobInputStreamTypeHandler
-
- All Implemented Interfaces:
TypeHandler<java.io.InputStream>
public class BlobInputStreamTypeHandler extends BaseTypeHandler<java.io.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 java.io.InputStreamgetNullableResult(java.sql.CallableStatement cs, int columnIndex)Get anInputStreamthat corresponds to a specified column index fromCallableStatement.java.io.InputStreamgetNullableResult(java.sql.ResultSet rs, int columnIndex)Get anInputStreamthat corresponds to a specified column index fromResultSet.java.io.InputStreamgetNullableResult(java.sql.ResultSet rs, java.lang.String columnName)Get anInputStreamthat corresponds to a specified column name fromResultSet.voidsetNonNullParameter(java.sql.PreparedStatement ps, int i, java.io.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(java.sql.PreparedStatement ps, int i, java.io.InputStream parameter, JdbcType jdbcType) throws java.sql.SQLExceptionSet anInputStreamintoPreparedStatement.- Specified by:
setNonNullParameterin classBaseTypeHandler<java.io.InputStream>- Throws:
java.sql.SQLException- See Also:
PreparedStatement.setBlob(int, InputStream)
-
getNullableResult
public java.io.InputStream getNullableResult(java.sql.ResultSet rs, java.lang.String columnName) throws java.sql.SQLExceptionGet anInputStreamthat corresponds to a specified column name fromResultSet.- Specified by:
getNullableResultin classBaseTypeHandler<java.io.InputStream>- Throws:
java.sql.SQLException- See Also:
ResultSet.getBlob(String)
-
getNullableResult
public java.io.InputStream getNullableResult(java.sql.ResultSet rs, int columnIndex) throws java.sql.SQLExceptionGet anInputStreamthat corresponds to a specified column index fromResultSet.- Specified by:
getNullableResultin classBaseTypeHandler<java.io.InputStream>- Throws:
java.sql.SQLException- See Also:
ResultSet.getBlob(int)
-
getNullableResult
public java.io.InputStream getNullableResult(java.sql.CallableStatement cs, int columnIndex) throws java.sql.SQLExceptionGet anInputStreamthat corresponds to a specified column index fromCallableStatement.- Specified by:
getNullableResultin classBaseTypeHandler<java.io.InputStream>- Throws:
java.sql.SQLException- See Also:
CallableStatement.getBlob(int)
-
-