java.lang.Object
io.github.torand.fastersql.function.singlerow.cast.CastBuilder

public class CastBuilder extends Object
Builder of CAST expressions.
  • Constructor Details

    • CastBuilder

      public CastBuilder(Expression operand)
      Creates a CAST builder.
      Parameters:
      operand - the operand.
  • Method Details

    • as

      public Cast as(DataType targetType)
      Creates CAST expression casting to specified data type.
      Parameters:
      targetType - the datatype to cast to.
      Returns:
      the CAST expression.