Top Description Constructors Methods
org.eclipse.persistence.jpa.jpql.parser

public final Class ConcatExpression

extends AbstractSingleEncapsulatedExpression
Class Inheritance
Imports
java.util.ArrayList, .List

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)
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

AccessConstructor and Description
public
ConcatExpression(AbstractExpression
The parent of this expression
parent
)

Creates a new ConcatExpression.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
public CollectionExpression

Returns:

The single constructor item represented by a temporary collection
buildCollectionExpression
()

Creates a new CollectionExpression that will wrap the single constructor item.

public String
public JPQLQueryBNF
Inherited from org.eclipse.persistence.jpa.jpql.parser.AbstractSingleEncapsulatedExpression:
acceptChildrenaddChildrenToaddOrderedEncapsulatedExpressionTofindQueryBNFgetExpressionhasEncapsulatedExpressionhasExpressionparseEncapsulatedExpressionremoveEncapsulatedExpressionsetExpressiontoParsedTextEncapsulatedExpression

Constructor Detail

ConcatExpressionback to summary
public ConcatExpression(AbstractExpression parent)

Creates a new ConcatExpression.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override
buildCollectionExpressionback to summary
public CollectionExpression buildCollectionExpression()

Creates a new CollectionExpression that will wrap the single constructor item.

Returns:CollectionExpression

The single constructor item represented by a temporary collection

getEncapsulatedExpressionQueryBNFIdback to summary
public String getEncapsulatedExpressionQueryBNFId()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractSingleEncapsulatedExpression.getEncapsulatedExpressionQueryBNFId.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractSingleEncapsulatedExpression.getEncapsulatedExpressionQueryBNFId.

Returns the BNF used to parse the encapsulated expression.

Returns:String

The BNF used to parse the encapsulated expression

Annotations
@Override
getQueryBNFback to summary
public JPQLQueryBNF getQueryBNF()

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Returns the BNF of this Expression.

Returns:JPQLQueryBNF

The JPQLQueryBNF, which represents the grammar of this Expression

Annotations
@Override