public class LocalQuery extends Query
ServerQuery
.Modifier and Type | Method and Description |
---|---|
void |
bind(String name,
Object value,
String type)
Binds a value with an optional type to an external variable.
|
protected void |
cache()
Caches the query result.
|
void |
close() |
void |
context(Object value,
String type)
Binds a value with an optional type to an external variable.
|
String |
execute()
Returns the complete result of the query.
|
String |
info()
Returns query info.
|
String |
options()
Returns the serialization options.
|
boolean |
updating()
Returns
true if the query may perform updates. |
public void bind(String name, Object value, String type) throws IOException
Query
bind
in class Query
name
- name of variablevalue
- value to be boundtype
- value type (may be null
)IOException
- I/O exceptionpublic void context(Object value, String type) throws IOException
Query
context
in class Query
value
- value to be boundtype
- value type (may be null
)IOException
- I/O exceptionprotected void cache() throws IOException
Query
cache
in class Query
IOException
- I/O exceptionpublic String execute() throws IOException
Query
execute
in class Query
null
IOException
- I/O exceptionpublic String info() throws IOException
Query
info
in class Query
IOException
- I/O exceptionpublic String options() throws IOException
Query
options
in class Query
IOException
- I/O exceptionpublic boolean updating() throws IOException
Query
true
if the query may perform updates.updating
in class Query
IOException
- I/O exceptionpublic void close()
Copyright © 2005–2015 BaseX Team. All rights reserved.