Class DecimalColumn

All Implemented Interfaces:
ColumnMeta<BigDecimal>

public final class DecimalColumn extends Column<BigDecimal>
Column with a fixed decimal point type.
  • Field Details

    • MAX_PRECISION

      public static final int MAX_PRECISION
      Maximum possible precision of a decimal column.

      (currently limited by MS SQL)

      See Also:
    • CELESTA_TYPE

      public static final String CELESTA_TYPE
      Celesta type of the column data.
      See Also:
  • Constructor Details

  • Method Details

    • getDefaultValue

      public BigDecimal getDefaultValue()
      Description copied from class: Column
      Returns default value.
      Specified by:
      getDefaultValue in class Column<BigDecimal>
    • getCelestaDefault

      public String getCelestaDefault()
      Description copied from class: Column
      DEFAULT value of the field in CelestaSQL language.
      Specified by:
      getCelestaDefault in class Column<BigDecimal>
    • jdbcGetterName

      public String jdbcGetterName()
      Description copied from interface: ColumnMeta
      Name of jdbcGetter that should be used for getting column data.
      Returns:
    • getCelestaType

      public String getCelestaType()
      Description copied from interface: ColumnMeta
      Celesta data type that corresponds to the field.
      Returns:
    • getJavaClass

      public Class<?> getJavaClass()
      Description copied from interface: ColumnMeta
      Returns corresponding Java data type.
      Returns:
    • getPrecision

      public int getPrecision()
      Returns precision.
      Returns:
    • setPrecision

      public void setPrecision(int precision)
      Sets precision.
      Parameters:
      precision - precision
    • getScale

      public int getScale()
      Returns scale.
      Returns:
    • setScale

      public void setScale(int scale)
      Sets scale.
      Parameters:
      scale - scale