Class SQLFunctionSet

  • All Implemented Interfaces:
    FunctionLibrary

    public class SQLFunctionSet
    extends BuiltInFunctionSet
    The SQLFunctionSet is a set of Saxon vendor-supplied extension functions designed to enable access to SQL databases
    • Constructor Detail

      • SQLFunctionSet

        public SQLFunctionSet()
    • Method Detail

      • setConfiguration

        public void setConfiguration​(Configuration config)
        Description copied from interface: FunctionLibrary
        Supply details of the configuration in use.
        Parameters:
        config - the configuration. The default implementation does nothing (many function libraries do not need to know any configuration details)
      • sqlQueryResult

        public static java.util.List<MapItem> sqlQueryResult​(java.sql.ResultSet rs)
                                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • supplyParameters

        public static void supplyParameters​(java.sql.ParameterMetaData metaData,
                                            SequenceType[] parameterTypes)
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNamespace

        public NamespaceUri getNamespace()
        Return the namespace URI for the functions local to this function set.
        Overrides:
        getNamespace in class BuiltInFunctionSet
        Returns:
        the namespace URI of the functions local to this function set. Note that functions imported from another function set may have a different namespace URI.
      • getConventionalPrefix

        public java.lang.String getConventionalPrefix()
        Description copied from class: BuiltInFunctionSet
        Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.
        Overrides:
        getConventionalPrefix in class BuiltInFunctionSet
        Returns:
        the string "fn"