Uses of Package
org.eclipse.persistence.jpa.jpql.tools
Package
Description
This package contains the
StateObject
classes that represents a JPQL query.The Hermes SPI defines how the parser and its related features can retrieve information about
the JPA managed types from the application.
-
ClassDescriptionThe visitor provides support for finding the possible proposals within a JPQL query at a certain position.This helper handles adding proposals within a conditional expression that might be parsed as a single expression or has a collection of expression, which means the fragment is either incomplete or invalid.This visitor retrieves the permitted type from the path expression's parent.This visitor scans the visited
Expression
and determines if a JPQL identifier can be added ("appended") when the position of the cursor is at the end of the expression.This is used to determine howAbstractContentAssistVisitor.AppendableExpressionVisitor
should perform the check.This helper is used to determine how to add proposals within a collection of expressions.This visitor retrieves theCollectionExpression
if it is visited.This helpers handles adding proposals forAbstractConditionalClause
.The default implementation ofAbstractContentAssistVisitor.MappingCollector
, which simply returns an empty collection.This builder populates aQueryPosition
by traversing the valid portion of the JPQL query.This visitor determines whether a path expression can be resolved as a fully qualified enum type and an enum constant.ThisAbstractContentAssistVisitor.MappingCollector
returns the possible mappings (non-collection type or collection type) from a managed type.The various ways of retrieving identification variables from the declaration expression.This visitor is used when a clause or a compound expression was parsed with a collection of expressions representing an invalid fragment.This visitor determines if the visitedExpression
is one of the two that represents an invalid expression.A collector is responsible to retrieve the possible proposals by using the mappings that can complete a path expression.This visitor is responsible to create the rightFilter
based on the type of theExpression
.This helper helps to add JPQL identifiers for the clauses that make up a query statement and also chains the clauses within the query.This visitor determines if anExpression
is in a subquery.This visitor is meant to adjust the corrections stack when traversing anExpression
in order to increase the list of valid proposals.This helpers handles adding proposals forWhenClause
.This helper can perform the following operations over a JPQL query: Calculates the result type of a query:AbstractJPQLQueryHelper.getResultType()
; Calculates the type of an input parameter:AbstractJPQLQueryHelper.getParameterType(String)
. Calculates the possible choices to complete the query from a given position (used for content assist):AbstractJPQLQueryHelper.buildContentAssistProposals(int)
. Validates the query by introspecting it grammatically and semantically:AbstractJPQLQueryHelper.validate()
,AbstractJPQLQueryHelper.validateGrammar()
,AbstractJPQLQueryHelper.validateSemantic()
. Refactoring support:AbstractJPQLQueryHelper.buildBasicRefactoringTool()
provides support for generating the delta of the refactoring operation through a collection ofTextEdit
objects.AbstractJPQLQueryHelper.buildRefactoringTool()
provides support for refactoring the JPQL query through the editableStateObject
and once all refactoring operations have been executed, theIJPQLQueryFormatter
will generate a new string representation of the JPQL query.The abstract definition of a refactoringThe abstract implementation providing refactoring support for JPQL queries.The abstract class that all refactoring classes should extend, it automatically provides the MultiTextEdit that will hold theTextEdit
objects that are related to the same refactoring event.This visitor renames any segment of a path expression.This visitor renames a fully qualified class name.This visitor renames an entity name.This visitor renames an enum constant.This visitor renames all the result variables found in the JPQL query.This visitor renames all the identification variables found in the JPQL query.This extension can be used to provide additional support to JPQL content assist that is outside the scope of providing proposals related to JPA metadata.This object stores the various proposals available for content assist for a certain position within a JPQL query.This enumeration determines the type of classes returned byContentAssistProposals.classNames()
.Holds onto theIType
of the enum type and the list of possible enum constants.The default implementation ofContentAssistProposals
which stores the valid proposals.The concrete instance that determines the return type of a function expression.This validator is responsible to validate a JPQL query grammatically purely based on the JPA specification document.This context is used to store information related to the JPQL query.This visitor traverses anExpression
and retrieves the "literal" value.This 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.The basic validator for validating the type of anExpression
.This visitor adds support for the additional clauses provided by EclipseLink, such as theThis subclass adds support for EclipseLink specific support.This context is used to store information related to the JPQL query.This visitor calculates the type of an input parameter.This context is used to store information related to the JPQL query.This visitor is responsible to find theInputParameters
with a certain parameter name.This visitor is responsible to retrieve theExpression
that is the beginning of a query.A refactoring delta contains an ordered collection ofTextEdit
.The abstract implementation providing refactoring support for JPQL queries.This visitor renames a fully qualified class name.This visitor renames an entity name.This visitor renames an enum constant.This visitor renames any segment of a path expression.This visitor renames all the result variables found in the JPQL query.This interface is used to transparently push the new value into theStateObject
.This visitor renames all the identification variables found in the JPQL query.This is used to retrieve the new JPQL query when a content assist item needs to be insert at a certain position.ATextEdit
contains the information of a change that can be made to the JPQL query after performing a refactoring operation.This helper contains methods related toIType
and can perform equivalency checks. -
-
ClassDescriptionThis context is used to store information related to the JPQL query.This helper contains methods related to
IType
and can perform equivalency checks. -