Package org.alfresco.ibatis
Class ByteArrayTypeHandler
- java.lang.Object
-
- org.alfresco.ibatis.ByteArrayTypeHandler
-
- All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler
public class ByteArrayTypeHandler extends Object implements org.apache.ibatis.type.TypeHandler
MyBatis 3.x TypeHandler for _byte[] to BLOB types.- Since:
- 5.0
- Author:
- sglover
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classByteArrayTypeHandler.DeserializationExceptionMarker exception to allow deserialization issues to be dealt with by calling code.static classByteArrayTypeHandler.SerializationExceptionMarker exception to allow serialization issues to be dealt with by calling code.
-
Constructor Summary
Constructors Constructor Description ByteArrayTypeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetResult(CallableStatement cs, int columnIndex)ObjectgetResult(ResultSet rs, int columnIndex)ObjectgetResult(ResultSet rs, String columnName)voidsetParameter(PreparedStatement ps, int i, Object parameter, org.apache.ibatis.type.JdbcType jdbcType)ObjectvalueOf(String s)
-
-
-
Method Detail
-
getResult
public Object getResult(ResultSet rs, String columnName) throws SQLException
- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
ByteArrayTypeHandler.DeserializationException- if the object could not be deserializedSQLException
-
getResult
public Object getResult(ResultSet rs, int columnIndex) throws SQLException
- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
SQLException
-
setParameter
public void setParameter(PreparedStatement ps, int i, Object parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
- Specified by:
setParameterin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
SQLException
-
getResult
public Object getResult(CallableStatement cs, int columnIndex) throws SQLException
- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
SQLException
-
-