Class SQLQueryFn

  • All Implemented Interfaces:
    Callable, Function, GroundedValue, Item, Sequence

    public class SQLQueryFn
    extends SystemFunction
    This class implements the sql:query() extension function. Arguments:
    1. The connection
    2. The table name
    3. A sequence of column names
    4. (optional) A SQL predicate selecting the rows to be selected

    The result is a sequence of maps, one for each selected row: the maps hold one entry for each requested column, with the corresponding value from the table.

    • Constructor Detail

      • SQLQueryFn

        public SQLQueryFn()
    • Method Detail

      • call

        public Sequence call​(XPathContext context,
                             Sequence[] arguments)
                      throws XPathException
        Description copied from interface: Function
        Invoke the function
        context - the XPath dynamic evaluation context
        arguments - the actual arguments to be supplied
        the result of invoking the function
        XPathException - if a dynamic error occurs within the function