public class SQLExtensionFunctions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE |
Constructor and Description |
---|
SQLExtensionFunctions() |
Modifier and Type | Method and Description |
---|---|
static Sequence |
close(XPathContext context,
Item conn) |
static Sequence |
closeLocal(XPathContext context,
java.sql.Connection connection) |
static ObjectValue<java.sql.Connection> |
connect(XPathContext context,
One<StringValue> database,
One<StringValue> driver,
One<StringValue> user,
One<StringValue> password,
One<StringValue> autoCommit) |
static MapItem |
connectMap(XPathContext context,
One<StringValue> database,
One<StringValue> driver,
One<StringValue> user,
One<StringValue> password,
One<StringValue> autoCommit) |
static Sequence |
query(XPathContext context,
Item conn,
One<StringValue> query) |
static Sequence |
query(XPathContext context,
Item conn,
One<StringValue> table,
OneOrMore<Item> columns) |
static Sequence |
query(XPathContext context,
Item conn,
One<StringValue> table,
OneOrMore<Item> columns,
ZeroOrOne<StringValue> where) |
static java.util.ArrayList<MapItem> |
queryMap(XPathContext context,
Item conn,
One<StringValue> query) |
static java.util.ArrayList<MapItem> |
queryMap(XPathContext context,
Item conn,
One<StringValue> table,
OneOrMore<Item> columns,
ZeroOrOne<StringValue> where) |
static java.util.ArrayList<MapItem> |
queryMapLocal(XPathContext context,
java.sql.Connection connection,
One<StringValue> query) |
static StringValue |
queryString(One<StringValue> table,
OneOrMore<Item> columns,
ZeroOrOne<StringValue> where)
Forms an SQL query from subparts
|
public static final java.lang.String NAMESPACE
public static ObjectValue<java.sql.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, java.sql.Connection connection) throws XPathException
XPathException
public static java.util.ArrayList<MapItem> queryMap(XPathContext context, Item conn, One<StringValue> table, OneOrMore<Item> columns, ZeroOrOne<StringValue> where) throws XPathException
XPathException
public static java.util.ArrayList<MapItem> queryMap(XPathContext context, Item conn, One<StringValue> query) throws XPathException
XPathException
public static java.util.ArrayList<MapItem> queryMapLocal(XPathContext context, java.sql.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-2018 Saxonica Limited. All rights reserved.