public class SQLExtensionFunctions extends Object
Constructor and Description |
---|
SQLExtensionFunctions() |
public static final String NAMESPACE
public static ObjectValue<Connection> connect(XPathContext context, One<StringValue> database, One<StringValue> driver, One<StringValue> user, One<StringValue> password, One<StringValue> autoCommit) throws XPathException
XPathException
public static StringValue queryString(One<StringValue> table, OneOrMore<Item> columns, ZeroOrOne<StringValue> where) throws XPathException
table
- Database table to select fromcolumns
- columns to choose ("*" means all)where
- selection criteriaXPathException
public static Sequence query(XPathContext context, Item conn, One<StringValue> table, OneOrMore<Item> columns) throws XPathException
XPathException
public static Sequence query(XPathContext context, Item conn, One<StringValue> table, OneOrMore<Item> columns, ZeroOrOne<StringValue> where) throws XPathException
XPathException
public static Sequence query(XPathContext context, Item conn, One<StringValue> query) throws XPathException
XPathException
public static Sequence close(XPathContext context, Item conn) throws XPathException
XPathException
public static Sequence closeLocal(XPathContext context, Connection connection) throws XPathException
XPathException
public static ArrayList<MapItem> queryMap(XPathContext context, Item conn, One<StringValue> table, OneOrMore<Item> columns, ZeroOrOne<StringValue> where) throws XPathException
XPathException
public static ArrayList<MapItem> queryMap(XPathContext context, Item conn, One<StringValue> query) throws XPathException
XPathException
public static ArrayList<MapItem> queryMapLocal(XPathContext context, Connection connection, One<StringValue> query) throws XPathException
XPathException
public static MapItem connectMap(XPathContext context, One<StringValue> database, One<StringValue> driver, One<StringValue> user, One<StringValue> password, One<StringValue> autoCommit) throws XPathException
XPathException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.