|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.tools.AbstractRefactoringTool
public abstract class AbstractRefactoringTool
The abstract definition of a refactoring
RefactoringTool,
BasicRefactoringTool| Constructor Summary | |
|---|---|
protected |
AbstractRefactoringTool(java.lang.CharSequence jpqlFragment,
IManagedTypeProvider managedTypeProvider,
java.lang.String jpqlQueryBNFId)
Creates a new BasicRefactoringTool. |
| Method Summary | |
|---|---|
java.lang.CharSequence |
getJPQLFragment()
Returns the original JPQL query or the JPQL fragment that was passed to this tool so it can be manipulated. |
java.lang.String |
getJPQLQueryBNFId()
Returns the unique identifier of the JPQL query BNF that determined how the JPQL query or fragment needs to be parsed. |
IManagedTypeProvider |
getManagedTypeProvider()
Returns the provider of managed types. |
boolean |
isTolerant()
Determines whether the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queries. |
void |
setTolerant(boolean tolerant)
Sets whether the parsing system should be tolerant, meaning if it should try to parse invalid or incomplete queries. |
abstract java.lang.String |
toActualText()
Returns the resulted of the refactoring operations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractRefactoringTool(java.lang.CharSequence jpqlFragment,
IManagedTypeProvider managedTypeProvider,
java.lang.String jpqlQueryBNFId)
BasicRefactoringTool.
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 fragment| Method Detail |
|---|
public java.lang.CharSequence getJPQLFragment()
public java.lang.String getJPQLQueryBNFId()
JPQLQueryBNF
used to parse the querypublic IManagedTypeProvider getManagedTypeProvider()
public boolean isTolerant()
public void setTolerant(boolean tolerant)
tolerant - true if the JPQL query or fragment should be parsed with tolerance;
false otherwisepublic abstract java.lang.String toActualText()
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||