|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.core.Progress
org.basex.core.Command
public abstract class Command
This class provides the architecture for all internal command implementations. It evaluates queries that are sent by the GUI, the client or the standalone version.
| Field Summary | |
|---|---|
java.lang.String[] |
args
Command arguments. |
| Fields inherited from class org.basex.core.Progress |
|---|
listen, updating |
| Method Summary | |
|---|---|
java.lang.String |
execute(Context ctx)
Executes the command and returns the result as string. |
void |
execute(Context ctx,
java.io.OutputStream os)
Executes the command and prints the result to the specified output stream. |
java.lang.String |
info()
Returns command information. |
boolean |
newData(Context ctx)
Closes an open data reference and returns true if this command will change
the Context.data reference. |
Result |
result()
Returns the result set, generated by a query command. |
boolean |
run(Context ctx)
Runs the command without permission, data and concurrency checks. |
boolean |
run(Context ctx,
java.io.OutputStream os)
Runs the command without permission, data and concurrency checks. |
void |
setInput(org.xml.sax.InputSource is)
Attaches an input source. |
void |
setInput(java.io.InputStream is)
Attaches an input stream. |
boolean |
stoppable()
Returns true if this command can be stopped. |
boolean |
supportsProg()
Returns true if this command returns a progress value. |
java.lang.String |
toString()
|
boolean |
updated(Context ctx)
Checks if the command has updated any data. |
boolean |
updating(Context ctx)
Checks if the command performs updates/write operations. |
| Methods inherited from class org.basex.core.Progress |
|---|
checkStop, detail, listen, progress, startTimeout, stop, stopTimeout, title |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String[] args
| Method Detail |
|---|
public final void execute(Context ctx,
java.io.OutputStream os)
throws BaseXException
BaseXException is thrown.
ctx - database contextos - output stream reference
BaseXException - command exception
public final java.lang.String execute(Context ctx)
throws BaseXException
BaseXException is thrown.
ctx - database context
BaseXException - command exceptionpublic void setInput(java.io.InputStream is)
is - input streampublic void setInput(org.xml.sax.InputSource is)
is - input sourcepublic final boolean run(Context ctx)
ctx - database context
public final java.lang.String info()
public Result result()
Prop.CACHEQUERY is set, and can only be called once.
public boolean updating(Context ctx)
ctx - database context
public boolean updated(Context ctx)
ctx - database context
public boolean newData(Context ctx)
true if this command will change
the Context.data reference. This method is required by the progress dialog
in the frontend.
ctx - database context
public boolean supportsProg()
public boolean stoppable()
public final java.lang.String toString()
toString in class java.lang.Object
public boolean run(Context ctx,
java.io.OutputStream os)
ctx - database contextos - output stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||