Class BigDecimalTypeHandler

  • All Implemented Interfaces:
    TypeHandler<java.math.BigDecimal>

    public class BigDecimalTypeHandler
    extends BaseTypeHandler<java.math.BigDecimal>
    Author:
    Clinton Begin
    • Constructor Detail

      • BigDecimalTypeHandler

        public BigDecimalTypeHandler()
    • Method Detail

      • setNonNullParameter

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

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

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

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