Class SQLFunctionAbstract

    • Field Detail

    • Constructor Detail

      • SQLFunctionAbstract

        public SQLFunctionAbstract​(String iName)
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: SQLFunction
        Function name, the name is used by the sql parser to identify a call this function.
        Specified by:
        getName in interface SQLFunction
        Returns:
        String , function name, never null or empty.
      • config

        public void config​(Object[] iConfiguredParameters)
        Description copied from interface: SQLFunction
        Configure the function.
        Specified by:
        config in interface SQLFunction
      • aggregateResults

        public boolean aggregateResults()
        Description copied from interface: SQLFunction
        A function can make calculation on several records before returning a result.

        Example of such function : sum, count, max, min ...

        The final result of the aggregation is obtained by calling SQLFunction.getResult()

        Specified by:
        aggregateResults in interface SQLFunction
        Returns:
        true if function aggregate results
      • getResult

        public Object getResult()
        Description copied from interface: SQLFunction
        Only called when function aggregates results after all records have been passed to the function.
        Specified by:
        getResult in interface SQLFunction
        Returns:
        Aggregation result