Package org.eclipse.persistence.jpa.jpql
package org.eclipse.persistence.jpa.jpql
This package contains the Hermes features (except the parser itself): semantic and grammatical
validations, content assist support, calculating the query result type or the possible type of
an input parameter, refactoring tools.
-
ClassDescriptionThis visitor calculates the type of an input parameter.This validator is responsible to gather the problems found in a JPQL query by validating the content to make sure it is semantically valid for EclipseLink.This visitor retrieves the clause owning the visited
Expression
.The base validator responsible to gather the problems found in a JPQL query by validating it against the provided JPQL grammar.This validate is responsible to validate the collection ofExpressions
: Making sure they are all separated by a comma or by a space (depending on which one is required); Making sure it does not end with a comma; There is no empty expression between two commas.AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractEncapsulatedExpression>The root helper that validates anyAbstractEncapsulatedExpression
.AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<T extends AbstractSingleEncapsulatedExpression>The abstract implementation ofAbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper
which implements some of the methods since the behavior is the same for all subclasses ofAbstractSingleEncapsulatedExpression
.AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>This visitor retrieves theCollectionExpression
if it is visited.This validator validates aCollectionExpression
by making sure each item is separated by a comma.This validator validates aCollectionExpression
by making sure each item is not separated by a comma.This visitor checks to see if the visited expression isNullExpression
.The base validator responsible to gather the problems found in a JPQL query by validating the content to make sure it is semantically valid, i.e.This visitor is meant to retrieve anCollectionValuedPathExpression
if the visitedExpression
is that object.This visitor compares the left and right expressions of a comparison expression and gathers information about those expressions if they are an identification variable or a path expression.This enumeration allowsAbstractSemanticValidator.validateStateFieldPathExpression(StateFieldPathExpression, PathType)
to validate the type of the mapping and to make sure it is allowed based on its location.This visitor is meant to retrieve anAbstractSemanticValidator.StateFieldPathExpressionVisitor
if the visitedExpression
is that object.The abstract definition of a validator, which provides helper methods and visitors.This visitor is responsible to traverse the children of aCollectionExpression
in order to properly validate theExpression
.This visitor is responsible to traverse the parent hierarchy and to skipSubExpression
if it's a parent.This visitor gathers the children of aCollectionExpression
or a single visitedExpression
.This visitor validates anyExpression
by checking its BNF against some BNFs.This visitor retrieves the clause owning the visitedExpression
.This visitor retrieves the statement owning the visitedExpression
.This visitor retrieves the statement owning the visitedExpression
.An utility class that provides various checks and when the condition fails, then anAssert.AssertException
is thrown.The exception thrown when the condition is not met.This visitor traverses the parsed tree and retrieves theIdentificationVariable
defined in the base range variable declaration for the top-level statement if and only if the query is aDELETE
orUPDATE
query.This validator adds EclipseLink extension over what the JPA functional specification had defined.This visitor traverses anExpression
and retrieves the "literal" value.This extension provides additional support to semantic validation by adding support for non-JPA specific artifacts, such as database objects.An enumeration listing the various releases of EclipseLink.A utility class containing various methods related to the Hermes parser.An enumeration listing the various releases of the Java Persistence specification.AJPQLQueryDeclaration
represents either an identification variable declaration or a collection member declaration.This enum type defines the various types of declarations supported by both the JPA functional specification and EclipseLink.A problem describes an issue found in a JPQL query because it is either grammatically or semantically incorrect.The list of messages used byJPQLQueryProblems
when validating a JPQL query.The resource bundle containing the problems encountered in a JPQL query.SomeExpression
can have a "literal", this enumeration is used to visit anExpression
and to retrieve the right value.This visitor traverses anExpression
and retrieves the "literal" value.This visitor calculates the type of an input parameter.This helper is used byAbstractSemanticValidator
in order to retrieve JPA information.This "parser/scanner" holds onto the string version of the JPQL query that is parsed into a parsed tree.This enumeration determines the type of word that was scanned.