Class BasicRefactoringTool.JavaQuery

  • All Implemented Interfaces:
    IQuery
    Enclosing class:
    BasicRefactoringTool

    protected static class BasicRefactoringTool.JavaQuery
    extends java.lang.Object
    implements IQuery
    A simple implementation of IQuery.
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaQuery​(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery)
      Creates a new JavaQuery.
    • 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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JavaQuery

        public JavaQuery​(IManagedTypeProvider provider,
                         java.lang.CharSequence jpqlQuery)
        Creates a new JavaQuery.
        Parameters:
        provider - The provider of JPA managed types
        jpqlQuery - 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 interface IQuery
        Returns:
        A non-null string representation of the JPQL query
      • getProvider

        public IManagedTypeProvider getProvider()
        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​(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 class java.lang.Object