Package org.alfresco.ibatis
Class ByteArrayTypeHandler
java.lang.Object
org.alfresco.ibatis.ByteArrayTypeHandler
- All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler
MyBatis 3.x TypeHandler for _byte[] to BLOB types.
- Since:
- 5.0
- Author:
- sglover
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMarker exception to allow deserialization issues to be dealt with by calling code.static classMarker exception to allow serialization issues to be dealt with by calling code. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResult(CallableStatement cs, int columnIndex) voidsetParameter(PreparedStatement ps, int i, Object parameter, org.apache.ibatis.type.JdbcType jdbcType)
-
Constructor Details
-
ByteArrayTypeHandler
public ByteArrayTypeHandler()
-
-
Method Details
-
getResult
- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
ByteArrayTypeHandler.DeserializationException- if the object could not be deserializedSQLException
-
getResult
- 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
- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
SQLException
-
valueOf
- Returns:
- Returns the value given
-