Class BlobByteObjectArrayTypeHandler

  • All Implemented Interfaces:
    TypeHandler<java.lang.Byte[]>

    public class BlobByteObjectArrayTypeHandler
    extends BaseTypeHandler<java.lang.Byte[]>
    • Constructor Detail

      • BlobByteObjectArrayTypeHandler

        public BlobByteObjectArrayTypeHandler()
    • Method Detail

      • setNonNullParameter

        public void setNonNullParameter​(java.sql.PreparedStatement ps,
                                        int i,
                                        java.lang.Byte[] parameter,
                                        JdbcType jdbcType)
                                 throws java.sql.SQLException
        Specified by:
        setNonNullParameter in class BaseTypeHandler<java.lang.Byte[]>
        Throws:
        java.sql.SQLException
      • getNullableResult

        public java.lang.Byte[] getNullableResult​(java.sql.ResultSet rs,
                                                  java.lang.String columnName)
                                           throws java.sql.SQLException
        Description copied from class: BaseTypeHandler
        Gets the nullable result.
        Specified by:
        getNullableResult in class BaseTypeHandler<java.lang.Byte[]>
        Parameters:
        rs - the rs
        columnName - Colunm name, when configuration useColumnLabel is false
        Returns:
        the nullable result
        Throws:
        java.sql.SQLException - the SQL exception
      • getNullableResult

        public java.lang.Byte[] getNullableResult​(java.sql.ResultSet rs,
                                                  int columnIndex)
                                           throws java.sql.SQLException
        Specified by:
        getNullableResult in class BaseTypeHandler<java.lang.Byte[]>
        Throws:
        java.sql.SQLException
      • getNullableResult

        public java.lang.Byte[] getNullableResult​(java.sql.CallableStatement cs,
                                                  int columnIndex)
                                           throws java.sql.SQLException
        Specified by:
        getNullableResult in class BaseTypeHandler<java.lang.Byte[]>
        Throws:
        java.sql.SQLException
      • getBytes

        private java.lang.Byte[] getBytes​(java.sql.Blob blob)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException