Class BigDecimalAsDoubleType

java.lang.Object
com.querydsl.sql.types.AbstractType<BigDecimal>
com.querydsl.sql.types.BigDecimalAsDoubleType
All Implemented Interfaces:
Type<BigDecimal>

public class BigDecimalAsDoubleType extends AbstractType<BigDecimal>
BigDecimalAsDoubleType maps BigDecimal to Double on the JDBC level
Author:
tiwe
  • Field Details

  • Constructor Details

    • BigDecimalAsDoubleType

      public BigDecimalAsDoubleType()
    • BigDecimalAsDoubleType

      public BigDecimalAsDoubleType(int type)
  • Method Details

    • getValue

      public BigDecimal getValue(ResultSet rs, int startIndex) throws SQLException
      Description copied from interface: Type
      Get the object from the result set
      Parameters:
      rs - result set
      startIndex - column index in result set
      Returns:
      value
      Throws:
      SQLException
    • getReturnedClass

      public Class<BigDecimal> getReturnedClass()
      Description copied from interface: Type
      Get the returned type
      Returns:
      returned class
    • setValue

      public void setValue(PreparedStatement st, int startIndex, BigDecimal value) throws SQLException
      Description copied from interface: Type
      Set the object to the statement
      Parameters:
      st - statement
      startIndex - column index in statement
      value - value to be set
      Throws:
      SQLException