public final class ServerQuery extends Proc
LocalQuery
and ClientQuery
.Constructor and Description |
---|
ServerQuery(String query,
Context ctx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(String name,
Object value,
String type)
Binds a global variable.
|
void |
context(Object value,
String type)
Binds the context value.
|
void |
execute(boolean iter,
OutputStream out,
boolean encode,
boolean full)
Executes the query.
|
String |
info()
Returns the query info.
|
String |
parameters()
Returns the serialization parameters.
|
boolean |
updating()
Returns
true if the query may perform updates. |
abort, checkStop, databases, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
public void bind(String name, Object value, String type) throws IOException
name
- name of variablevalue
- value to be boundtype
- typeIOException
- query exceptionpublic void context(Object value, String type) throws IOException
value
- value to be boundtype
- typeIOException
- query exceptionpublic String info()
public String parameters() throws IOException
IOException
- I/O Exceptionpublic boolean updating() throws IOException
true
if the query may perform updates.IOException
- I/O Exceptionpublic void execute(boolean iter, OutputStream out, boolean encode, boolean full) throws IOException
iter
- iterative evaluationout
- output streamencode
- encode streamfull
- return full type informationIOException
- I/O ExceptionCopyright © 2005–2015 BaseX Team. All rights reserved.