public class ClientQuery extends Query
ClientListener and interpreted by the QueryListener.| Modifier and Type | Field and Description |
|---|---|
protected ClientSession |
cs
Client session.
|
protected java.lang.String |
id
Query id.
|
| Constructor and Description |
|---|
ClientQuery(java.lang.String query,
ClientSession session,
java.io.OutputStream os)
Standard constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.lang.String n,
java.lang.Object v,
java.lang.String t)
Binds a value with an optional type to an external variable.
|
protected void |
cache()
Caches the query result.
|
void |
close()
Closes the query.
|
void |
context(java.lang.Object v,
java.lang.String t)
Binds a value with an optional type to an external variable.
|
java.lang.String |
execute()
Returns the complete result of the query.
|
java.lang.String |
info()
Returns query info.
|
java.lang.String |
options()
Returns the serialization options.
|
boolean |
updating()
Returns
true if the query may perform updates. |
protected final ClientSession cs
protected final java.lang.String id
public ClientQuery(java.lang.String query,
ClientSession session,
java.io.OutputStream os)
throws java.io.IOException
query - query to be runsession - client sessionos - output streamjava.io.IOException - I/O exceptionpublic java.lang.String info()
throws java.io.IOException
Querypublic java.lang.String options()
throws java.io.IOException
Querypublic boolean updating()
throws java.io.IOException
Querytrue if the query may perform updates.public void bind(java.lang.String n,
java.lang.Object v,
java.lang.String t)
throws java.io.IOException
Querypublic void context(java.lang.Object v,
java.lang.String t)
throws java.io.IOException
Querypublic java.lang.String execute()
throws java.io.IOException
Querypublic void close()
throws java.io.IOException
Query