Class BasicRefactoringTool.JavaQuery
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.BasicRefactoringTool.JavaQuery
- All Implemented Interfaces:
IQuery
- Enclosing class:
BasicRefactoringTool
A simple implementation of
IQuery.-
Constructor Summary
ConstructorsConstructorDescriptionJavaQuery(IManagedTypeProvider provider, CharSequence jpqlQuery) Creates a newJavaQuery. -
Method Summary
Modifier and TypeMethodDescriptionReturns the string representation of the JPQL query.Retrieves the provider of managed types.voidsetExpression(CharSequence jpqlQuery) Sets the string representation of the JPQL query.toString()
-
Constructor Details
-
JavaQuery
Creates a newJavaQuery.- Parameters:
provider- The provider of JPA managed typesjpqlQuery- The string representation of the JPQL query
-
-
Method Details
-
getExpression
Description copied from interface:IQueryReturns the string representation of the JPQL query.- Specified by:
getExpressionin interfaceIQuery- Returns:
- A non-
nullstring representation of the JPQL query
-
getProvider
Description copied from interface:IQueryRetrieves the provider of managed types.- Specified by:
getProviderin interfaceIQuery- Returns:
- The object that has access to the application's managed types.
-
setExpression
Sets the string representation of the JPQL query.- Parameters:
jpqlQuery- The string representation of the JPQL query
-
toString
-