Executes the query on the server based on the predicate. Valid only for a Native Client region.

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)


public ISelectResults Query(
	string predicate,
	uint timeout
Visual Basic (Declaration)
Public Function Query ( _
	predicate As String, _
	timeout As UInteger _
) As ISelectResults
Visual C++
ISelectResults^ Query (
	String^ predicate, 
	unsigned int timeout


The query predicate (just the WHERE clause) or the entire query to execute
The time (in seconds) to wait for the query response, optional

Return Value

The SelectResults which can either be a ResultSet or a StructSet.


GemStone.GemFire.Cache..::IllegalArgumentException If the predicate is empty.
GemStone.GemFire.Cache..::IllegalStateException If some error occurred.
GemStone.GemFire.Cache..::CacheServerException If an exception is received from the Java cache server.
GemStone.GemFire.Cache..::NotConnectedException if not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it. For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException.
GemStone.GemFire.Cache..::MessageException If the message received from server could not be handled. This will be the case when an unregistered typeId is received in the reply or reply is not well formed. More information can be found in the log.
GemStone.GemFire.Cache..::QueryException If some query error occurred at the server.
GemStone.GemFire.Cache..::TimeoutException if the operation timed out
GemStone.GemFire.Cache..::CacheClosedException if the cache has been closed

See Also