Class ConcatExpression

  • All Implemented Interfaces:
    Expression

    public final class ConcatExpression
    extends AbstractSingleEncapsulatedExpression
    The CONCAT function returns a string that is a concatenation of its arguments.

    JPA 1.0:

    BNF: expression ::= CONCAT(string_primary, string_primary)

    JPA 2.0:

    BNF: expression ::= CONCAT(string_primary, string_primary {, string_primary}*)

    JPA 2.1:

    BNF: expression ::= CONCAT(string_expression, string_expression {, string_expression}*)
    Example: SELECT c.firstName FROM Customer c HAVING c.firstName = CONCAT(:fname, :lname)
    Version:
    2.5
    Author:
    Pascal Filion
    Since:
    2.3