|
||||||||||
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.Proc
public abstract class Proc
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 | |
---|---|
static int |
DATAREF
Commands flag: data reference needed. |
int |
flags
Flags for controlling process evaluation. |
static int |
STANDARD
Commands flag: standard. |
Constructor Summary | |
---|---|
Proc(int f,
String... a)
Constructor. |
Method Summary | |
---|---|
boolean |
exec(Context ctx)
Executes the process and returns a success flag. |
boolean |
exec(Context ctx,
OutputStream out)
Executes the process, prints the result to the specified output stream and returns a success flag. |
void |
execute(Context ctx)
Executes the process. |
void |
execute(Context ctx,
OutputStream out)
Executes the process and serializes textual results to the specified output stream. |
String |
info()
Returns process information or error message. |
Result |
result()
Returns the result set, generated by the last query. |
String |
toString()
Returns a string representation of the process. |
boolean |
updating(Context ctx)
Returns if the process performs updates. |
Methods inherited from class org.basex.core.Progress |
---|
abort, 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 static final int STANDARD
public static final int DATAREF
public final int flags
Constructor Detail |
---|
public Proc(int f, String... a)
f
- command flagsa
- argumentsMethod Detail |
---|
public void execute(Context ctx, OutputStream out) throws BaseXException
BaseXException
is thrown.
ctx
- database contextout
- output stream reference
BaseXException
- process exceptionpublic void execute(Context ctx) throws BaseXException
execute(Context, OutputStream)
should be
called if textual results are expected.
If an exception occurs, a BaseXException
is thrown.
ctx
- database context
BaseXException
- process exceptionpublic final boolean exec(Context ctx, OutputStream out)
ctx
- database contextout
- output stream
info()
method returns information
on a potential exceptionpublic final boolean exec(Context ctx)
exec(Context, OutputStream)
should be called to retrieve textual
results.
ctx
- database context
info()
method returns information
on a potential exceptionpublic final String info()
public final Result result()
Prop.CACHEQUERY
is set.
public boolean updating(Context ctx)
ctx
- context reference
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |