GemStone::GemFire::Cache::Query Class Reference


Detailed Description

Class to encapsulate a query.

Public Member Functions

void Compile ()
ISelectResultsExecute (UInt32 timeout)
ISelectResultsExecute ()

Properties

Boolean IsCompiled [get]
String^  QueryString [get]

Member Function Documentation

void GemStone::GemFire::Cache::Query::Compile (  ) 

Compile the given query -- NOT IMPLEMENTED.

ISelectResults ^ GemStone::GemFire::Cache::Query::Execute ( UInt32  timeout  ) 

Executes the OQL Query on the cache server with the specified timeout and returns the results.

Parameters:
timeout The time (in seconds) to wait for query response. This should be less than or equal to 2^31/1000 i.e. 2147483.
Exceptions:
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
Returns:
An ISelectResults object which can either be a ResultSet or a StructSet.

ISelectResults ^ GemStone::GemFire::Cache::Query::Execute (  ) 

Executes the OQL Query on the cache server and returns the results. The default timeout for the query is 15 secs.

Exceptions:
QueryException if some query error occurred at the server.
IllegalStateException if some other error occurred.
NotConnectedException if no java cache server is available
Returns:
An ISelectResults object which can either be a ResultSet or a StructSet.


Property Documentation

Boolean GemStone::GemFire::Cache::Query::IsCompiled [get]

Check if the query is compiled -- NOT IMPLEMENTED.

String^ GemStone::GemFire::Cache::Query::QueryString [get]

Get the string for this query.


GemFire C++ Cache .NET API Documentation