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 java.lang.Object implements org.apache.ibatis.type.TypeHandlerMyBatis 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 java.lang.ObjectgetResult(java.sql.CallableStatement cs, int columnIndex)java.lang.ObjectgetResult(java.sql.ResultSet rs, int columnIndex)java.lang.ObjectgetResult(java.sql.ResultSet rs, java.lang.String columnName)voidsetParameter(java.sql.PreparedStatement ps, int i, java.lang.Object parameter, org.apache.ibatis.type.JdbcType jdbcType)java.lang.ObjectvalueOf(java.lang.String s)
-
-
-
Method Detail
-
getResult
public java.lang.Object getResult(java.sql.ResultSet rs, java.lang.String columnName) throws java.sql.SQLException- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
ByteArrayTypeHandler.DeserializationException- if the object could not be deserializedjava.sql.SQLException
-
getResult
public java.lang.Object getResult(java.sql.ResultSet rs, int columnIndex) throws java.sql.SQLException- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
java.sql.SQLException
-
setParameter
public void setParameter(java.sql.PreparedStatement ps, int i, java.lang.Object parameter, org.apache.ibatis.type.JdbcType jdbcType) throws java.sql.SQLException- Specified by:
setParameterin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
java.sql.SQLException
-
getResult
public java.lang.Object getResult(java.sql.CallableStatement cs, int columnIndex) throws java.sql.SQLException- Specified by:
getResultin interfaceorg.apache.ibatis.type.TypeHandler- Throws:
java.sql.SQLException
-
valueOf
public java.lang.Object valueOf(java.lang.String s)
- Returns:
- Returns the value given
-
-