public class BlobInputStreamTypeHandler extends BaseTypeHandler<InputStream>
configuration| Constructor and Description |
|---|
BlobInputStreamTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getNullableResult(CallableStatement cs,
int columnIndex)
Get an
InputStream that corresponds to a specified column index from CallableStatement. |
InputStream |
getNullableResult(ResultSet rs,
int columnIndex)
Get an
InputStream that corresponds to a specified column index from ResultSet. |
InputStream |
getNullableResult(ResultSet rs,
String columnName)
Get an
InputStream that corresponds to a specified column name from ResultSet. |
void |
setNonNullParameter(PreparedStatement ps,
int i,
InputStream parameter,
JdbcType jdbcType)
Set an
InputStream into PreparedStatement. |
getResult, getResult, getResult, setConfiguration, setParametergetRawType, toStringpublic void setNonNullParameter(PreparedStatement ps, int i, InputStream parameter, JdbcType jdbcType) throws SQLException
InputStream into PreparedStatement.setNonNullParameter in class BaseTypeHandler<InputStream>SQLExceptionPreparedStatement.setBlob(int, InputStream)public InputStream getNullableResult(ResultSet rs, String columnName) throws SQLException
InputStream that corresponds to a specified column name from ResultSet.getNullableResult in class BaseTypeHandler<InputStream>rs - the rscolumnName - Colunm name, when configuration useColumnLabel is falseSQLException - the SQL exceptionResultSet.getBlob(String)public InputStream getNullableResult(ResultSet rs, int columnIndex) throws SQLException
InputStream that corresponds to a specified column index from ResultSet.getNullableResult in class BaseTypeHandler<InputStream>SQLExceptionResultSet.getBlob(int)public InputStream getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
InputStream that corresponds to a specified column index from CallableStatement.getNullableResult in class BaseTypeHandler<InputStream>SQLExceptionCallableStatement.getBlob(int)Copyright © 2009–2021 MyBatis.org. All rights reserved.