public class EclipseLinkJPQLQueryHelper extends AbstractJPQLQueryHelper
AbstractJPQLQueryHelper.getResultType()
;AbstractJPQLQueryHelper.getParameterType(String)
.AbstractJPQLQueryHelper.buildContentAssistProposals(int)
.buildBasicRefactoringTool()
provides support for generating the delta of the
refactoring operation through a collection of TextEdit
objects.buildRefactoringTool()
provides support for refactoring the JPQL query through
the editable StateObject
and
once all refactoring operations have been executed, the jpql.model.IJPQLQueryFormatter IJPQLQueryFormatter
will generate a new string representation
of the JPQL query.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor and Description |
---|
EclipseLinkJPQLQueryHelper(JPQLGrammar jpqlGrammar)
Creates a new
EclipseLinkJPQLQueryHelper . |
EclipseLinkJPQLQueryHelper(JPQLQueryContext queryContext)
Creates a new
EclipseLinkJPQLQueryHelper . |
Modifier and Type | Method and Description |
---|---|
BasicRefactoringTool |
buildBasicRefactoringTool()
Creates the concrete instance of the tool that can refactor the content of a JPQL query.
|
protected AbstractContentAssistVisitor |
buildContentAssistVisitor(JPQLQueryContext queryContext)
Creates the concrete instance of the content assist visitor that will give the possible
choices based on the position of the cursor within the JPQL query.
|
protected EclipseLinkSemanticValidatorExtension |
buildEclipseLinkSemanticValidatorExtension()
Creates a new
EclipseLinkSemanticValidatorExtension , which will provide additional
support for non-JPA related information. |
protected EclipseLinkGrammarValidator |
buildGrammarValidator(JPQLGrammar jpqlGrammar)
Creates the concrete instance of the validator that will grammatically validate the JPQL query.
|
protected JPQLQueryContext |
buildJPQLQueryContext(JPQLGrammar jpqlGrammar)
Creates a context that will be used to store and retrieve information about the JPQL query.
|
protected IJPQLQueryBuilder |
buildQueryBuilder()
Creates the right
IJPQLQueryBuilder based on the JPQL grammar. |
RefactoringTool |
buildRefactoringTool()
Creates the concrete instance of the tool that can refactor the content of a JPQL query.
|
protected AbstractEclipseLinkSemanticValidator |
buildSemanticValidator(JPQLQueryContext queryContext)
Creates the concrete instance of the validator that will semantically validate the JPQL query.
|
buildContentAssistProposals, buildContentAssistProposals, buildNumericTypeComparator, dispose, getContentAssistVisitor, getGrammar, getGrammarValidator, getJPQLExpression, getParameterType, getParsedJPQLQuery, getProvider, getQuery, getQueryContext, getResultType, getSemanticValidator, getType, getTypeHelper, getTypeRepository, setJPQLExpression, setQuery, validate, validate, validateGrammar, validateGrammar, validateSemantic, validateSemantic
public EclipseLinkJPQLQueryHelper(JPQLGrammar jpqlGrammar)
EclipseLinkJPQLQueryHelper
.jpqlGrammar
- The JPQLGrammar
that will determine how to parse JPQL queriespublic EclipseLinkJPQLQueryHelper(JPQLQueryContext queryContext)
EclipseLinkJPQLQueryHelper
.queryContext
- The context used to query information about the JPQL querypublic BasicRefactoringTool buildBasicRefactoringTool()
buildBasicRefactoringTool
in class AbstractJPQLQueryHelper
RefactoringTool
AbstractJPQLQueryHelper.buildRefactoringTool()
protected AbstractContentAssistVisitor buildContentAssistVisitor(JPQLQueryContext queryContext)
buildContentAssistVisitor
in class AbstractJPQLQueryHelper
queryContext
- The context used to query information about the JPQL queryAbstractContentAssistVisitor
protected EclipseLinkSemanticValidatorExtension buildEclipseLinkSemanticValidatorExtension()
EclipseLinkSemanticValidatorExtension
, which will provide additional
support for non-JPA related information.EclipseLinkSemanticValidatorExtension
or
EclipseLinkSemanticValidatorExtension.NULL_EXTENSION
if none is requiredprotected EclipseLinkGrammarValidator buildGrammarValidator(JPQLGrammar jpqlGrammar)
buildGrammarValidator
in class AbstractJPQLQueryHelper
AbstractGrammarValidator
protected JPQLQueryContext buildJPQLQueryContext(JPQLGrammar jpqlGrammar)
buildJPQLQueryContext
in class AbstractJPQLQueryHelper
jpqlGrammar
- The JPQL grammar that is required for dictating how the JPQL query will be
parsed. It is also used by validation and by the content assistJPQLQueryContext
protected IJPQLQueryBuilder buildQueryBuilder()
IJPQLQueryBuilder
based on the JPQL grammar.IJPQLQueryBuilder
public RefactoringTool buildRefactoringTool()
eclipse.persistence.jpa.jpql.model.query.StateObject StateObject
and simply outputs the
result of the refactoring operations, i.e. the updated JPQL query).buildRefactoringTool
in class AbstractJPQLQueryHelper
RefactoringTool
#buildSimpleRefactoringTool
protected AbstractEclipseLinkSemanticValidator buildSemanticValidator(JPQLQueryContext queryContext)
buildSemanticValidator
in class AbstractJPQLQueryHelper
queryContext
- The context used to query information about the JPQL queryAbstractSemanticValidator