public final class XQuery extends AQuery
Constructor and Description |
---|
XQuery(String query)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
XQuery |
bind(String name,
String value)
Binds a variable.
|
XQuery |
bind(String name,
String value,
String type)
Binds a variable.
|
XQuery |
bind(String name,
Value value)
Binds a variable.
|
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
addLocks, build, parameters, result, stoppable, updated, updating
addLocks, baseURI, baseURI, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, newData, run, run, setInput, setInput, supportsProg, toString, toString
public XQuery(String query)
query
- query to evaluateprotected boolean run()
Command
public XQuery bind(String name, Value value)
name
- name of variable (if null
, value will be bound as context value)value
- XQuery value to be boundpublic XQuery bind(String name, String value)
name
- name of variable (if null
, value will be bound as context value)value
- value to be bound (XQuery value; any other value will be converted to a string)Copyright © 2005–2023 BaseX Team. All rights reserved.