|
||||||||||
| 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.Process
public abstract class Process
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. |
| Constructor Summary | |
|---|---|
Process(int f,
java.lang.String... a)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
args()
Returns the list of arguments. |
boolean |
data()
Returns if the current command needs a data reference for processing. |
boolean |
error(java.lang.String msg,
java.lang.Object... ext)
Adds the error message to the message buffer info. |
boolean |
execute(Context ctx)
Executes the process and returns a success flag. |
void |
execute(Context ctx,
PrintOutput out)
Executes the process and serializes the results. |
java.lang.String |
info()
Returns the query information as a string. |
void |
info(PrintOutput out)
Returns process info. |
boolean |
info(java.lang.String str,
java.lang.Object... ext)
Adds information on the process execution. |
void |
output(PrintOutput out)
Serializes the textual results. |
boolean |
printing()
Returns if the current command yields some output. |
Result |
result()
Returns the result set, generated by the last query. |
java.lang.String |
toString()
Returns a string representation of the object. |
boolean |
updating()
Returns if the current command generates updates in the data structure. |
| Methods inherited from class org.basex.core.Progress |
|---|
checkStop, det, detail, prog, progress, progress, stop, tit, title |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String[] args
| Constructor Detail |
|---|
public Process(int f,
java.lang.String... a)
f - command flagsa - arguments| Method Detail |
|---|
public void execute(Context ctx,
PrintOutput out)
throws java.lang.Exception
ctx - database contextout - output stream reference
java.lang.Exception - execution exceptionpublic final boolean execute(Context ctx)
ctx - database context
public final void output(PrintOutput out)
throws java.io.IOException
out - output stream
java.io.IOException - I/O exception
public final void info(PrintOutput out)
throws java.io.IOException
out - output stream
java.io.IOException - I/O exception
public final boolean error(java.lang.String msg,
java.lang.Object... ext)
info.
msg - error messageext - error extension
public final boolean info(java.lang.String str,
java.lang.Object... ext)
str - information to be addedext - extended info
public final java.lang.String info()
public final Result result()
public boolean printing()
public boolean data()
public boolean updating()
public final java.lang.String args()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||