public class FlowableBlobAutoCloseInputStreamTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<InputStream>
Constructor and Description |
---|
FlowableBlobAutoCloseInputStreamTypeHandler() |
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 . |
InputStream |
getResult(ResultSet rs,
String columnName) |
void |
setNonNullParameter(PreparedStatement ps,
int i,
InputStream parameter,
org.apache.ibatis.type.JdbcType jdbcType)
Set an
InputStream into PreparedStatement . |
public FlowableBlobAutoCloseInputStreamTypeHandler()
public InputStream getResult(ResultSet rs, String columnName) throws SQLException
getResult
in interface org.apache.ibatis.type.TypeHandler<InputStream>
getResult
in class org.apache.ibatis.type.BaseTypeHandler<InputStream>
SQLException
public void setNonNullParameter(PreparedStatement ps, int i, InputStream parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
InputStream
into PreparedStatement
.setNonNullParameter
in class org.apache.ibatis.type.BaseTypeHandler<InputStream>
SQLException
PreparedStatement.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 org.apache.ibatis.type.BaseTypeHandler<InputStream>
SQLException
ResultSet.getBlob(String)
public InputStream getNullableResult(ResultSet rs, int columnIndex) throws SQLException
InputStream
that corresponds to a specified column index from ResultSet
.getNullableResult
in class org.apache.ibatis.type.BaseTypeHandler<InputStream>
SQLException
ResultSet.getBlob(int)
public InputStream getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
InputStream
that corresponds to a specified column index from CallableStatement
.getNullableResult
in class org.apache.ibatis.type.BaseTypeHandler<InputStream>
SQLException
CallableStatement.getBlob(int)
Copyright © 2019. All rights reserved.