Class ConcatFunction

All Implemented Interfaces:
ExpressionWithVariableParameters, NamedExpression, HasSQL, Typed

public final class ConcatFunction extends FunctionN
A CONCAT or CONCAT_WS function.
  • Field Details

    • CONCAT

      public static final int CONCAT
      CONCAT() (non-standard).
      See Also:
    • CONCAT_WS

      public static final int CONCAT_WS
      CONCAT_WS() (non-standard).
      See Also:
    • NAMES

      private static final String[] NAMES
    • function

      private final int function
  • Constructor Details

    • ConcatFunction

      public ConcatFunction(int function)
    • ConcatFunction

      public ConcatFunction(int function, Expression... args)
  • Method Details

    • getValue

      public Value getValue(SessionLocal session)
      Description copied from class: Expression
      Return the resulting value for the current row.
      Overrides:
      getValue in class FunctionN
      Parameters:
      session - the session
      Returns:
      the result
    • optimize

      public Expression optimize(SessionLocal session)
      Description copied from class: Expression
      Try to optimize the expression.
      Specified by:
      optimize in class Expression
      Parameters:
      session - the session
      Returns:
      the optimized expression
    • getPrecision

      private long getPrecision(int i)
    • getName

      public String getName()
      Description copied from interface: NamedExpression
      Get the name.
      Returns:
      the name in uppercase