public class EclipseLinkBasicRefactoringTool extends BasicRefactoringTool
model.query.StateObject StateObject
but rather gather the changes in RefactoringDelta
and it is the responsibility of the invoker to the actual change.
Provided functionality:
Class
name (e.g.: in constructor expression);Enum
constant.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.
DefaultBasicRefactoringTool
BasicRefactoringTool.AbstractRenamer, BasicRefactoringTool.AttributeNameRenamer, BasicRefactoringTool.ClassNameRenamer, BasicRefactoringTool.EntityNameRenamer, BasicRefactoringTool.EnumConstantRenamer, BasicRefactoringTool.JavaQuery, BasicRefactoringTool.ResultVariableNameRenamer, BasicRefactoringTool.VariableNameRenamer
Constructor and Description |
---|
EclipseLinkBasicRefactoringTool(java.lang.CharSequence jpqlQuery,
JPQLGrammar jpqlGrammar,
IManagedTypeProvider managedTypeProvider)
Creates a new
EclipseLinkBasicRefactoringTool . |
EclipseLinkBasicRefactoringTool(java.lang.CharSequence jpqlFragment,
JPQLGrammar jpqlGrammar,
IManagedTypeProvider managedTypeProvider,
java.lang.String jpqlQueryBNFId)
Creates a new
EclipseLinkBasicRefactoringTool . |
Modifier and Type | Method and Description |
---|---|
protected JPQLQueryContext |
buildJPQLQueryContext()
Creates a new
JPQLQueryContext that can retrieve information from the declaration
portion of the JPQL query. |
buildAttributeNameRenamer, buildClassNameRenamer, buildEntityNameRenamer, buildEnumConstantRenamer, buildResultVariableNameRenamer, buildVariableNameRenamer, getDelta, getExpression, getGrammar, getQueryContext, hasChanges, renameAttribute, renameAttribute, renameAttribute, renameClassName, renameEntityName, renameEnumConstant, renameResultVariable, renameVariable, toActualText
getJPQLFragment, getJPQLQueryBNFId, getManagedTypeProvider, isTolerant, setTolerant
public EclipseLinkBasicRefactoringTool(java.lang.CharSequence jpqlQuery, JPQLGrammar jpqlGrammar, IManagedTypeProvider managedTypeProvider)
EclipseLinkBasicRefactoringTool
.jpqlQuery
- The JPQL query to manipulatejpqlGrammar
- The JPQLGrammar
that was used to parse the JPQL querymanagedTypeProvider
- The external form of a provider that gives access to the JPA metadatapublic EclipseLinkBasicRefactoringTool(java.lang.CharSequence jpqlFragment, JPQLGrammar jpqlGrammar, IManagedTypeProvider managedTypeProvider, java.lang.String jpqlQueryBNFId)
EclipseLinkBasicRefactoringTool
.jpqlFragment
- The JPQL query to manipulate or a single JPQL fragment, which is parsed
using the JPQL query BNF identifier by the given IDjpqlGrammar
- The JPQLGrammar
that was used to parse the JPQL fragmentmanagedTypeProvider
- The external form of a provider that gives access to the JPA metadatajpqlQueryBNFId
- The unique identifier of the parser.JPQLQueryBNF JPQLQueryBNF
that determines how to parse the JPQL fragmentprotected JPQLQueryContext buildJPQLQueryContext()
JPQLQueryContext
that can retrieve information from the declaration
portion of the JPQL query.buildJPQLQueryContext
in class BasicRefactoringTool
JPQLQueryContext