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
public class SQLFunctionSet extends BuiltInFunctionSet
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 Modifier and Type Field Description protected Configurationconfig
-
Constructor Summary
Constructors Constructor Description SQLFunctionSet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.sql.ConnectionexpectConnection(Sequence arg, XPathContext context)java.lang.StringgetConventionalPrefix()Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.java.lang.StringgetNamespace()Return the namespace URI for the functions local to this function set.voidsetConfiguration(Configuration config)static voidsetSqlStatementParam(java.sql.PreparedStatement ps, int index, Sequence value, XPathContext context)static java.util.List<MapItem>sqlQueryResult(java.sql.ResultSet rs)static voidsupplyParameters(java.sql.ParameterMetaData metaData, SequenceType[] parameterTypes)-
Methods inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
bind, copy, getFunctionDetails, getFunctionItem, importFunctionSet, isAvailable, makeFunction, register, registerReducedArityVariants
-
-
-
-
Field Detail
-
config
protected Configuration config
-
-
Method Detail
-
setConfiguration
public void setConfiguration(Configuration config)
-
sqlQueryResult
public static java.util.List<MapItem> sqlQueryResult(java.sql.ResultSet rs) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
setSqlStatementParam
public static void setSqlStatementParam(java.sql.PreparedStatement ps, int index, Sequence value, XPathContext context) throws XPathException- Throws:
XPathException
-
supplyParameters
public static void supplyParameters(java.sql.ParameterMetaData metaData, SequenceType[] parameterTypes) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
expectConnection
public static java.sql.Connection expectConnection(Sequence arg, XPathContext context) throws XPathException
- Throws:
XPathException
-
getNamespace
public java.lang.String getNamespace()
Return the namespace URI for the functions local to this function set.- Overrides:
getNamespacein 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
public java.lang.String getConventionalPrefix()
Description copied from class:BuiltInFunctionSetReturn a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.- Overrides:
getConventionalPrefixin classBuiltInFunctionSet
-
-