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.StringgetExpression()Returns the string representation of the JPQL query.IManagedTypeProvidergetProvider()Retrieves the provider of managed types.voidsetExpression(java.lang.CharSequence jpqlQuery)Sets the string representation of the JPQL query.java.lang.StringtoString()
-
-
-
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:
getExpressionin interfaceIQuery- Returns:
- A non-
nullstring representation of the JPQL query
-
getProvider
public IManagedTypeProvider getProvider()
Retrieves the provider of managed types.- Specified by:
getProviderin 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:
toStringin classjava.lang.Object
-
-