public abstract class AQuery extends Command
Modifier and Type | Method and Description |
---|---|
AQuery |
bind(String name,
String value)
Binds a variable.
|
AQuery |
bind(String name,
String value,
String type)
Binds a variable.
|
void |
build(CmdBuilder cb)
Builds a string representation from the command.
|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process.
|
Result |
finish()
Returns a cached result set generated by
query(java.lang.String) . |
void |
http(Object value)
Binds the HTTP context.
|
String |
parameters(Context ctx)
Returns the serialization parameters.
|
boolean |
stoppable()
Returns true if this command can be stopped.
|
boolean |
updated(Context ctx)
Checks if the command has updated any data.
|
boolean |
updating(Context ctx)
Checks if the command performs updates/write operations.
|
close, databases, error, execute, execute, finishUpdate, getOption, getOption, info, info, init, newData, run, run, run, setInput, setInput, startUpdate, supportsProg, toString, toString
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
public String parameters(Context ctx)
ctx
- contextpublic AQuery bind(String name, String value)
name
- name of variable (if null
, value will be bound as context value)value
- value to be boundpublic AQuery bind(String name, String value, String type)
name
- name of variable (if null
, value will be bound as context value)value
- value to be boundtype
- typepublic void http(Object value)
value
- HTTP contextpublic boolean updating(Context ctx)
Command
public boolean updated(Context ctx)
Command
public void databases(LockResult lr)
Proc
public void build(CmdBuilder cb)
Command
public boolean stoppable()
Command
public final Result finish()
Command
query(java.lang.String)
. Will only yield results if
MainOptions.CACHEQUERY
is set, and can only be called once.Copyright © 2005–2015 BaseX Team. All rights reserved.