Package org.basex.core.cmd
Class XQuery
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.AQuery
org.basex.core.cmd.XQuery
Evaluates the 'xquery' command and processes an XQuery request.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBinds a variable.Binds a variable.Binds a variable.protected booleanrun()Executes the command and serializes the result (internal call).Methods inherited from class org.basex.core.cmd.AQuery
addLocks, build, parameters, result, stoppable, updated, updatingMethods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, newData, run, run, setInput, setInput, supportsProg, toString, toString
-
Constructor Details
-
XQuery
Default constructor.- Parameters:
query- query to evaluate
-
-
Method Details
-
run
protected boolean run()Description copied from class:CommandExecutes the command and serializes the result (internal call). -
bind
Binds a variable.- Parameters:
name- name of variable (ifnull, value will be bound as context value)value- XQuery value to be bound- Returns:
- self reference
-
bind
Binds a variable.- Parameters:
name- name of variable (ifnull, value will be bound as context value)value- value to be bound (XQuery value; any other value will be converted to a string)- Returns:
- self reference
-
bind
Binds a variable.- Parameters:
name- name of variable (ifnull, value will be bound as context value)value- value to be boundtype- type- Returns:
- self reference
-