RefactoringTool, BasicRefactoringTool
| Modifier and Type | Field and Description |
|---|---|
| private CharSequence | jpqlFragment
The JPQL query to manipulate or a single JPQL fragment, which is parsed using the JPQL query specified BNF. |
| private String | jpqlQueryBNFId
The unique identifier of the |
| private IManagedTypeProvider | managedTypeProvider
The external form of a provider that gives access to the JPA metadata. |
| private boolean | tolerant
Determines whether the parsing system should be tolerant. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractRefactoringTool(CharSequence
The JPQL query to manipulate or a single JPQL fragment, which is parsed
using the JPQL query BNF identifier by the given ID jpqlFragment, IManagedTypeProvider The external form of a provider that gives access to the JPA metadata managedTypeProvider, String The unique identifier of the jpqlQueryBNFId)JPQLQueryBNF that determines how to parse
the JPQL fragmentCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public CharSequence | Returns: The string representation of the JPQL query or fragmentReturns the original JPQL query or the JPQL fragment that was passed to this tool so it can be manipulated. |
| public String | Returns: The ID of theJPQLQueryBNF
used to parse the queryReturns the unique identifier of the JPQL query BNF that determined how the JPQL query or fragment needs to be parsed. |
| public IManagedTypeProvider | Returns: The provider that gives access to the managed typesReturns the provider of managed types. |
| public boolean | Returns: By default, the parsing system uses toleranceDetermines whether the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queries. |
| public void | setTolerant(boolean
true if the JPQL query or fragment should be parsed with tolerance;
false otherwiseSets whether the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queries. |
| public abstract String | Returns: The string representation of the JPQL query that contains the changesReturns the resulted of the refactoring operations. |
| jpqlFragment | back to summary |
|---|---|
| private CharSequence jpqlFragment The JPQL query to manipulate or a single JPQL fragment, which is parsed using the JPQL query specified BNF. | |
| jpqlQueryBNFId | back to summary |
|---|---|
| private String jpqlQueryBNFId The unique identifier of the | |
| managedTypeProvider | back to summary |
|---|---|
| private IManagedTypeProvider managedTypeProvider The external form of a provider that gives access to the JPA metadata. | |
| tolerant | back to summary |
|---|---|
| private boolean tolerant Determines whether the parsing system should be tolerant. | |
| AbstractRefactoringTool | back to summary |
|---|---|
| protected AbstractRefactoringTool(CharSequence jpqlFragment, IManagedTypeProvider managedTypeProvider, String jpqlQueryBNFId) Creates a new
| |
| getJPQLFragment | back to summary |
|---|---|
| public CharSequence getJPQLFragment() Returns the original JPQL query or the JPQL fragment that was passed to this tool so it can be manipulated.
| |
| getJPQLQueryBNFId | back to summary |
|---|---|
| public String getJPQLQueryBNFId() Returns the unique identifier of the JPQL query BNF that determined how the JPQL query or fragment needs to be parsed.
| |
| getManagedTypeProvider | back to summary |
|---|---|
| public IManagedTypeProvider getManagedTypeProvider() Returns the provider of managed types.
| |
| isTolerant | back to summary |
|---|---|
| public boolean isTolerant() Determines whether the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queries.
| |
| setTolerant | back to summary |
|---|---|
| public void setTolerant(boolean tolerant) Sets whether the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queries.
| |
| toActualText | back to summary |
|---|---|
| public abstract String toActualText() Returns the resulted of the refactoring operations. The list of changes will be removed after applying the changes.
| |