Executes the query on the server based on the predicate
and returns whether any result exists.
Valid only for a Native Client region.
Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1
Syntax
| C# |
|---|
public bool ExistsValue( string predicate ) |
| Visual Basic (Declaration) |
|---|
Public Function ExistsValue ( _ predicate As String _ ) As Boolean |
| Visual C++ |
|---|
public: bool ExistsValue ( String^ predicate ) |
Parameters
- predicate
- String
The query predicate (just the WHERE clause) or the entire query to execute
Return Value
true if the result size is non-zero, false otherwise.
Exceptions
| Exception | Condition |
|---|---|
| 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. |
| 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
Region Class
GemStone.GemFire.Cache Namespace