Interface HqlQuery

    • Method Detail

      • setCacheResult

        void setCacheResult​(boolean flag)
        Specify if the query results should be cached or not.
        Parameters:
        flag - TRUE if the query results should be cached, FALSE otherwise
        Throws:
        UnsupportedOperationException - If this operation isn't supported by the implementation
        Developer info
        This option requires that a secondary cache that supports query results are used (ie. EHCache).
      • isCachingResult

        boolean isCachingResult()
        If the query results are cached or not.
        See Also:
        setCacheResult(boolean)
      • setEntityParameter

        void setEntityParameter​(String name,
                                BasicItem value)
        Set the value of an entity parameter. If the value of this parameter has already been set permanently, an InvalidDataException is thrown.
        Parameters:
        name - The name of the parameter
        value - The value of the parameter
        Throws:
        UnsupportedOperationException - If this operation isn't supported by the implementation
        InvalidDataException - If the value of the parameter has already been permanently set
        Since:
        2.17
      • setPermanentEntityParameter

        void setPermanentEntityParameter​(String name,
                                         BasicItem value)
        Permanently set the value of an entity parameter. If the value of this parameter has already been set permanently, an InvalidDataException is thrown.
        Parameters:
        name - The name of the parameter
        value - The value of the parameter
        Throws:
        UnsupportedOperationException - If this operation isn't supported by the implementation
        InvalidDataException - If the value of the parameter has already been permanently set
        Since:
        2.17