Class ShortTypeHandler

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

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

      • ShortTypeHandler

        public ShortTypeHandler()
    • Method Detail

      • setNonNullParameter

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

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

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

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