Class StandardSingleQueryClauseFunctionBundle

    • Constructor Detail

      • StandardSingleQueryClauseFunctionBundle

        public StandardSingleQueryClauseFunctionBundle​(String queryLanguage)
        Creates a bundle for a query language
        Parameters:
        queryLanguage - the query language
    • Method Detail

      • addFunction

        public void addFunction​(String clauseId,
                                JRClauseFunction function)
        Registers a query clause function.
        Parameters:
        clauseId - the clause Id
        function - the function implementation
      • getFunction

        public JRClauseFunction getFunction​(String queryLanguage,
                                            String clauseId)
        Description copied from interface: QueryClauseFunctionBundle
        Returns a clause function that applies to the specified query language and clause Id.
        Specified by:
        getFunction in interface QueryClauseFunctionBundle
        Parameters:
        queryLanguage - the query language
        clauseId - the clause Id
        Returns:
        a corresponding query function or null if the bundle doesn't know of such clause