VMware Tanzu GemFire Native .NET Reference 10.3.0
|
Class to encapsulate a query. More...
#include <Query.hpp>
Public Member Functions | |
void | Compile () |
Compile the given query – NOT IMPLEMENTED. More... | |
ISelectResults< TResult > ^ | Execute () |
Executes the OQL Query on the cache server and returns the results. More... | |
ISelectResults< TResult > ^ | Execute (array< Object^>^ paramList) |
Executes the OQL Parameterized Query on the cache server with the specified paramList and returns the results. More... | |
ISelectResults< TResult > ^ | Execute (array< Object^>^ paramList, TimeSpan timeout) |
Executes the OQL Parameterized Query on the cache server with the specified paramList & timeout parameters and returns the results. More... | |
ISelectResults< TResult > ^ | Execute (TimeSpan timeout) |
Executes the OQL Query on the cache server with the specified timeout and returns the results. More... | |
Properties | |
bool | IsCompiled [get] |
Check if the query is compiled – NOT IMPLEMENTED. More... | |
String^ | QueryString [get] |
Get the string for this query. More... | |
Class to encapsulate a query.
A Query is obtained from a QueryService which in turn is obtained from the Cache. This can be executed to return SelectResults which can be either a ResultSet or a StructSet.
This class is intentionally not thread-safe. So multiple threads should not operate on the same Query
object concurrently rather should have their own Query
objects.
void Apache::Geode::Client::Query< TResult >::Compile | ( | ) |
Compile the given query – NOT IMPLEMENTED.
ISelectResults< TResult > ^ Apache::Geode::Client::Query< TResult >::Execute | ( | ) |
Executes the OQL Query on the cache server and returns the results.
The default timeout for the query is 15 secs.
QueryException | if some query error occurred at the server. |
IllegalStateException | if some other error occurred. |
NotConnectedException | if no java cache server is available. For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException. |
ISelectResults< TResult > ^ Apache::Geode::Client::Query< TResult >::Execute | ( | array< Object^>^ | paramList | ) |
Executes the OQL Parameterized Query on the cache server with the specified paramList and returns the results.
The default timeout for the query is 15 secs.
paramList | The Parameter List for the specified Query. |
IllegalArgumentException | if timeout parameter is greater than 2^31/1000. |
QueryException | if some query error occurred at the server. |
IllegalStateException | if some other error occurred. |
NotConnectedException | if no java cache server is available For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException. |
ISelectResults< TResult > ^ Apache::Geode::Client::Query< TResult >::Execute | ( | array< Object^>^ | paramList, |
TimeSpan | timeout | ||
) |
Executes the OQL Parameterized Query on the cache server with the specified paramList & timeout parameters and returns the results.
paramList | The Parameter List for the specified Query. |
timeout | The time to wait for query response. |
IllegalArgumentException | if timeout parameter is too long. |
QueryException | if some query error occurred at the server. |
IllegalStateException | if some other error occurred. |
NotConnectedException | if no java cache server is available For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException. |
ISelectResults< TResult > ^ Apache::Geode::Client::Query< TResult >::Execute | ( | TimeSpan | timeout | ) |
Executes the OQL Query on the cache server with the specified timeout and returns the results.
timeout | The time to wait for query response. |
IllegalArgumentException | if timeout parameter is greater than 2^31/1000. |
QueryException | if some query error occurred at the server. |
IllegalStateException | if some other error occurred. |
NotConnectedException | if no java cache server is available For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException. |
|
get |
Check if the query is compiled – NOT IMPLEMENTED.
|
get |
Get the string for this query.