| Package | Description |
|---|---|
| org.eclipse.persistence.jpa.jpql.tools |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultJPQLQueryHelper
This helper can perform the following operations over a JPQL query:
Calculates the result type of a query:
getResultType();
Calculates the type of an input parameter: getParameterType(String).
Calculates the possible choices to complete the query from a given
position (used for content assist): buildContentAssistProposals(int).
Validates the query by introspecting it grammatically and semantically:
validate(),
validateGrammar(),
validateSemantic().
Refactoring support:
DefaultJPQLQueryHelper.buildBasicRefactoringTool() provides support for generating the delta of the
refactoring operation through a collection of TextEdit objects.
DefaultJPQLQueryHelper.buildRefactoringTool() provides support for refactoring the JPQL query through
the editable StateObject and
once all refactoring operations have been executed, the IJPQLQueryFormatter will
generate a new string representation of the JPQL query.
This helper should be used when the JPQL query is written using the JPQL grammar defined in the
Java Persistence functional specification 1.0 or 2.x. |
class |
EclipseLinkJPQLQueryHelper
This helper can perform the following operations over a JPQL query:
Calculates the result type of a query:
getResultType();
Calculates the type of an input parameter: getParameterType(String).
Calculates the possible choices to complete the query from a given
position (used for content assist): buildContentAssistProposals(int).
Validates the query by introspecting it grammatically and semantically:
validate(),
validateGrammar(),
validateSemantic().
Refactoring support:
EclipseLinkJPQLQueryHelper.buildBasicRefactoringTool() provides support for generating the delta of the
refactoring operation through a collection of TextEdit objects.
EclipseLinkJPQLQueryHelper.buildRefactoringTool() provides support for refactoring the JPQL query through
the editable StateObject and
once all refactoring operations have been executed, the IJPQLQueryFormatter will generate
a new string representation of the JPQL query.
This helper should be used when the JPQL query is written using the JPQL grammar defined in the
Java Persistence functional specification 2.1 and it contains the additional support provided by
EclipseLink. |
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.