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 class
ByteArrayTypeHandler.DeserializationException
Marker exception to allow deserialization issues to be dealt with by calling code.static class
ByteArrayTypeHandler.SerializationException
Marker 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 Object
getResult(CallableStatement cs, int columnIndex)
Object
getResult(ResultSet rs, int columnIndex)
Object
getResult(ResultSet rs, String columnName)
void
setParameter(PreparedStatement ps, int i, Object parameter, org.apache.ibatis.type.JdbcType jdbcType)
Object
valueOf(String s)
-
-
-
Method Detail
-
getResult
public Object getResult(ResultSet rs, String columnName) throws SQLException
- Specified by:
getResult
in 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:
getResult
in 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:
setParameter
in interfaceorg.apache.ibatis.type.TypeHandler
- Throws:
SQLException
-
getResult
public Object getResult(CallableStatement cs, int columnIndex) throws SQLException
- Specified by:
getResult
in interfaceorg.apache.ibatis.type.TypeHandler
- Throws:
SQLException
-
-