Package org.basex.api.client
Class ClientQuery
java.lang.Object
org.basex.api.client.Query
org.basex.api.client.ClientQuery
- All Implemented Interfaces:
Closeable,AutoCloseable
This class defines all methods for iteratively evaluating queries with the
client/server architecture. All sent data is received by the
ClientListener and interpreted by the ServerQuery.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidBinds a value with an optional type to an external variable.voidcache(boolean full) Caches the query result.voidclose()voidBinds a value with an optional type to an external variable.execute()Returns the complete result of the query.info()Returns query info.options()Returns the serialization options.booleanupdating()Returnstrueif the query may perform updates.
-
Method Details
-
info
Description copied from class:QueryReturns query info.- Specified by:
infoin classQuery- Returns:
- query info
- Throws:
IOException- I/O exception
-
options
Description copied from class:QueryReturns the serialization options.- Specified by:
optionsin classQuery- Returns:
- serialization options
- Throws:
IOException- I/O exception
-
updating
Description copied from class:QueryReturnstrueif the query may perform updates.- Specified by:
updatingin classQuery- Returns:
- updating flag
- Throws:
IOException- I/O exception
-
bind
Description copied from class:QueryBinds a value with an optional type to an external variable.- Specified by:
bindin classQuery- Parameters:
name- name of variablevalue- value to be boundtype- value type (may benull)- Throws:
IOException- I/O exception
-
context
Description copied from class:QueryBinds a value with an optional type to an external variable.- Specified by:
contextin classQuery- Parameters:
value- value to be boundtype- value type (may benull)- Throws:
IOException- I/O exception
-
execute
Description copied from class:QueryReturns the complete result of the query.- Specified by:
executein classQuery- Returns:
- item string or
null - Throws:
IOException- I/O exception
-
close
- Throws:
IOException
-
cache
Description copied from class:QueryCaches the query result.- Specified by:
cachein classQuery- Parameters:
full- retrieve full type information- Throws:
IOException- I/O exception
-