Class SQLPreparedStatementFn

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

    public class SQLPreparedStatementFn
    extends SystemFunction
    This class implements the sql:prepared-statement() extension function. Arguments:
    1. The connection
    2. A SQL statement, typically containing "?" placeholders

    The result is a function, with arity equal to the number of placeholders. When calling this function, the supplied arguments substitute for the placeholders in the statement, and the result is an empty sequence.

    • Constructor Detail

      • SQLPreparedStatementFn

        public SQLPreparedStatementFn()
    • Method Detail

      • call

        public Function 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