Package com.saxonica.functions.sql
Class SQLFunctionSet
java.lang.Object
net.sf.saxon.functions.registry.BuiltInFunctionSet
com.saxonica.functions.sql.SQLFunctionSet
- All Implemented Interfaces:
FunctionLibrary
The SQLFunctionSet is a set of Saxon vendor-supplied
extension functions designed to enable access to SQL databases
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
BuiltInFunctionSet.Entry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Connection
expectConnection
(Sequence arg, XPathContext context) Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.Return the namespace URI for the functions local to this function set.void
setConfiguration
(Configuration config) Supply details of the configuration in use.static void
setSqlStatementParam
(PreparedStatement ps, int index, Sequence value, XPathContext context) static void
supplyParameters
(ParameterMetaData metaData, SequenceType[] parameterTypes) Methods inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
bind, copy, field, getFunctionDetails, getFunctionItem, importFunctionSet, isAvailable, makeFunction, register, register, registerVariadic
-
Field Details
-
config
-
-
Constructor Details
-
SQLFunctionSet
public SQLFunctionSet()
-
-
Method Details
-
setConfiguration
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
- Throws:
SQLException
-
setSqlStatementParam
public static void setSqlStatementParam(PreparedStatement ps, int index, Sequence value, XPathContext context) throws XPathException - Throws:
XPathException
-
supplyParameters
public static void supplyParameters(ParameterMetaData metaData, SequenceType[] parameterTypes) throws SQLException - Throws:
SQLException
-
expectConnection
- Throws:
XPathException
-
getNamespace
Return the namespace URI for the functions local to this function set.- Overrides:
getNamespace
in classBuiltInFunctionSet
- 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
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 classBuiltInFunctionSet
- Returns:
- the string "fn"
-