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
ConstructorDescriptionJavaQuery
(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.void
setExpression
(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:IQuery
Returns the string representation of the JPQL query.- Specified by:
getExpression
in interfaceIQuery
- Returns:
- A non-
null
string representation of the JPQL query
-
getProvider
Description copied from interface:IQuery
Retrieves the provider of managed types.- Specified by:
getProvider
in 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
-