Module org.jooq
Package org.jooq.impl

Interface QOM.Trunc<T extends Number>

All Superinterfaces:
Field<T>, FieldOrConstraint, FieldOrRow, GroupField, Named, OrderField<T>, QueryPart, SelectField<T>, SelectFieldOrAsterisk, Serializable, Typed<T>
Enclosing class:
QOM

public static interface QOM.Trunc<T extends Number> extends Field<T>
The TRUNC function.

Truncate a number to a given number of decimals.

  • Method Details

    • $value

      @NotNull @NotNull Field<T> $value()
      The number to be truncated
    • $decimals

      @NotNull @NotNull Field<Integer> $decimals()
      The decimals to truncate to.
    • $value

      @NotNull @NotNull QOM.Trunc<T> $value(Field<T> value)
      The number to be truncated
    • $decimals

      @NotNull @NotNull QOM.Trunc<T> $decimals(Field<Integer> decimals)
      The decimals to truncate to.