Class SQLBlobTypeHandler
- java.lang.Object
-
- org.apache.ibatis.type.TypeReference<T>
-
- org.apache.ibatis.type.BaseTypeHandler<Object>
-
- org.ametys.plugins.contentio.synchronize.impl.typehandler.SQLBlobTypeHandler
-
- All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<Object>
public class SQLBlobTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<Object>
Handle Blob SQL type to return Bytes[] value
-
-
Constructor Summary
Constructors Constructor Description SQLBlobTypeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getNullableResult(CallableStatement cs, int columnIndex)
Object
getNullableResult(ResultSet rs, int columnIndex)
Object
getNullableResult(ResultSet rs, String columnName)
void
setNonNullParameter(PreparedStatement ps, int i, Object parameter, org.apache.ibatis.type.JdbcType jdbcType)
-
-
-
Constructor Detail
-
SQLBlobTypeHandler
public SQLBlobTypeHandler()
-
-
Method Detail
-
setNonNullParameter
public void setNonNullParameter(PreparedStatement ps, int i, Object parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
- Specified by:
setNonNullParameter
in classorg.apache.ibatis.type.BaseTypeHandler<Object>
- Throws:
SQLException
-
getNullableResult
public Object getNullableResult(ResultSet rs, String columnName) throws SQLException
- Specified by:
getNullableResult
in classorg.apache.ibatis.type.BaseTypeHandler<Object>
- Throws:
SQLException
-
getNullableResult
public Object getNullableResult(ResultSet rs, int columnIndex) throws SQLException
- Specified by:
getNullableResult
in classorg.apache.ibatis.type.BaseTypeHandler<Object>
- Throws:
SQLException
-
getNullableResult
public Object getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
- Specified by:
getNullableResult
in classorg.apache.ibatis.type.BaseTypeHandler<Object>
- Throws:
SQLException
-
-