Class ByteTypeHandler

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

    public class ByteTypeHandler
    extends BaseTypeHandler<java.lang.Byte>
    Author:
    Clinton Begin
    • Constructor Detail

      • ByteTypeHandler

        public ByteTypeHandler()
    • 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
        Specified by:
        getNullableResult in class BaseTypeHandler<java.lang.Byte>
        columnName - Colunm name, when configuration useColumnLabel is false
        Throws:
        java.sql.SQLException
      • 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