Class ByteArrayTypeHandler

  • All Implemented Interfaces:
    TypeHandler<byte[]>

    public class ByteArrayTypeHandler
    extends BaseTypeHandler<byte[]>
    Author:
    Clinton Begin
    • Constructor Detail

      • ByteArrayTypeHandler

        public ByteArrayTypeHandler()
    • Method Detail

      • setNonNullParameter

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

        public byte[] getNullableResult​(java.sql.ResultSet rs,
                                        java.lang.String columnName)
                                 throws java.sql.SQLException
        Specified by:
        getNullableResult in class BaseTypeHandler<byte[]>
        columnName - Colunm name, when configuration useColumnLabel is false
        Throws:
        java.sql.SQLException
      • getNullableResult

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

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