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 Object implements IQuery
A simple implementation of IQuery.
  • Constructor Details

    • JavaQuery

      public JavaQuery(IManagedTypeProvider provider, CharSequence jpqlQuery)
      Creates a new JavaQuery.
      Parameters:
      provider - The provider of JPA managed types
      jpqlQuery - The string representation of the JPQL query
  • Method Details

    • getExpression

      public String getExpression()
      Description copied from interface: IQuery
      Returns the string representation of the JPQL query.
      Specified by:
      getExpression in interface IQuery
      Returns:
      A non-null string representation of the JPQL query
    • getProvider

      public IManagedTypeProvider getProvider()
      Description copied from interface: IQuery
      Retrieves the provider of managed types.
      Specified by:
      getProvider in interface IQuery
      Returns:
      The object that has access to the application's managed types.
    • setExpression

      public void setExpression(CharSequence jpqlQuery)
      Sets the string representation of the JPQL query.
      Parameters:
      jpqlQuery - The string representation of the JPQL query
    • toString

      public String toString()
      Overrides:
      toString in class Object