Class BasicRefactoringTool.JavaQuery

    • Constructor Detail

      • 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 Detail

      • 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