|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.AQuery
public abstract class AQuery
Abstract class for database queries.
Field Summary | |
---|---|
protected Result |
result
Query result. |
Fields inherited from class org.basex.core.Command |
---|
args, context, in, mprop, out, perf, prop |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
protected |
AQuery(Perm p,
boolean d,
java.lang.String... arg)
Protected constructor. |
Method Summary | |
---|---|
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. |
protected boolean |
query(java.lang.String query)
Evaluates the specified query. |
protected void |
queryNodes()
Performs the first argument as XQuery and returns a node set. |
Result |
result()
Returns the result set, generated by a query command. |
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. |
protected boolean |
updating(Context ctx,
java.lang.String qu)
Checks if the query might perform updates. |
Methods inherited from class org.basex.core.Command |
---|
close, databases, error, execute, execute, getOption, getOption, info, info, newData, run, run, run, setInput, setInput, supportsProg, toString |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Result result
Constructor Detail |
---|
protected AQuery(Perm p, boolean d, java.lang.String... arg)
p
- required permissiond
- requires opened databasearg
- argumentsMethod Detail |
---|
protected final boolean query(java.lang.String query)
query
- query
protected final boolean updating(Context ctx, java.lang.String qu)
ctx
- database contextqu
- query
protected final void queryNodes()
public boolean updating(Context ctx)
Command
updating
in class Command
ctx
- database context
public boolean updated(Context ctx)
Command
updated
in class Command
ctx
- database context
public void databases(LockResult lr)
Proc
databases
in class Proc
lr
- Container for lock result to pass aroundpublic void build(CmdBuilder cb)
Command
build
in class Command
cb
- command builderpublic boolean stoppable()
Command
stoppable
in class Command
public final Result result()
Command
Prop.CACHEQUERY
is set, and can only be called once.
result
in class Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |