Class BasicRefactoringTool.JavaQuery
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.BasicRefactoringTool.JavaQuery
-
- All Implemented Interfaces:
IQuery
- Enclosing class:
- BasicRefactoringTool
protected static class BasicRefactoringTool.JavaQuery extends java.lang.Object implements IQuery
A simple implementation ofIQuery
.
-
-
Constructor Summary
Constructors Constructor Description JavaQuery(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery)
Creates a newJavaQuery
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExpression()
Returns the string representation of the JPQL query.IManagedTypeProvider
getProvider()
Retrieves the provider of managed types.void
setExpression(java.lang.CharSequence jpqlQuery)
Sets the string representation of the JPQL query.java.lang.String
toString()
-
-
-
Constructor Detail
-
JavaQuery
public JavaQuery(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery)
Creates a newJavaQuery
.- Parameters:
provider
- The provider of JPA managed typesjpqlQuery
- The string representation of the JPQL query
-
-
Method Detail
-
getExpression
public java.lang.String getExpression()
Returns the string representation of the JPQL query.- Specified by:
getExpression
in interfaceIQuery
- Returns:
- A non-
null
string representation of the JPQL query
-
getProvider
public IManagedTypeProvider getProvider()
Retrieves the provider of managed types.- Specified by:
getProvider
in interfaceIQuery
- Returns:
- The object that has access to the application's managed types.
-
setExpression
public void setExpression(java.lang.CharSequence jpqlQuery)
Sets the string representation of the JPQL query.- Parameters:
jpqlQuery
- The string representation of the JPQL query
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-