All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.persistence.jpa.jpql.parser.CollectionValuedPathExpression Maven / Gradle / Ivy

There is a newer version: 4.0.3-RC2
Show newest version
/*
 * Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0,
 * or the Eclipse Distribution License v. 1.0 which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
 */

// Contributors:
//     Oracle - initial API and implementation
//
package org.eclipse.persistence.jpa.jpql.parser;

/**
 * A collection_valued_field is designated by the name of an association field in a
 * one-to-many or a many-to-many relationship or by the name of an element collection field. The
 * type of a collection_valued_field is a collection of values of the abstract schema
 * type of the related entity or element type.
 *
 * 
BNF: collection_valued_path_expression ::= general_identification_variable.{single_valued_object_field.}*collection_valued_field

* * @version 2.4 * @since 2.3 * @author Pascal Filion */ public final class CollectionValuedPathExpression extends AbstractPathExpression { /** * Creates a new CollectionValuedPathExpression. * * @param parent The parent of this expression * @param expression The identification variable that was already parsed, which means the * beginning of the parsing should start with a dot */ public CollectionValuedPathExpression(AbstractExpression parent, AbstractExpression expression) { super(parent, expression); } /** * Creates a new CollectionValuedPathExpression. * * @param parent The parent of this expression * @param expression The identification variable that was already parsed, which means the * beginning of the parsing should start with a dot * @param paths The path expression that is following the identification variable */ public CollectionValuedPathExpression(AbstractExpression parent, AbstractExpression expression, String paths) { super(parent, expression, paths); } /** * Creates a new CollectionValuedPathExpression. * * @param parent The parent of this expression * @param paths The path expression */ public CollectionValuedPathExpression(AbstractExpression parent, String paths) { super(parent, paths); } /** * {@inheritDoc} */ public void accept(ExpressionVisitor visitor) { visitor.visit(this); } /** * {@inheritDoc} */ public JPQLQueryBNF getQueryBNF() { return getQueryBNF(CollectionValuedPathExpressionBNF.ID); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy