Note: This API is now obsolete.
Class to encapsulate a query.
Inheritance HierarchySystemObject [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Query>] GemStone.GemFire.CacheQuery
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public sealed class Query : [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Query>]
<ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")>
Public NotInheritable Class Query
Inherits [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Query>]
[ObsoleteAttribute(L"Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public ref class Query sealed : public [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Query>]
[<SealedAttribute>]
[<ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")>]
type Query =
class
inherit [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Query>]
end
The Query type exposes the following members.
Properties
| Name | Description |
---|
 | IsCompiled |
Check if the query is compiled -- NOT IMPLEMENTED.
|
 | QueryString |
Get the string for this query.
|
Top
Methods
| Name | Description |
---|
 | Compile |
Compile the given query -- NOT IMPLEMENTED.
|
 | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
 | Execute |
Executes the OQL Query on the cache server and returns
the results. The default timeout for the query is 15 secs.
|
 | Execute(UInt32) |
Executes the OQL Query on the cache server with the specified
timeout and returns the results.
|
 | Execute(IGFSerializable) |
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.
|
 | Execute(IGFSerializable, UInt32) | |
 | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
 | GetType | Gets the Type of the current instance. (Inherited from Object.) |
 | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
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.
See Also