Click or drag to resize
Query Class

Note: This API is now obsolete.

Class to encapsulate a query.
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Query>]
    GemStone.GemFire.CacheQuery

Namespace: GemStone.GemFire.Cache
Assembly: 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>]

The Query type exposes the following members.

Properties
  NameDescription
Public propertyIsCompiled
Check if the query is compiled -- NOT IMPLEMENTED.
Public propertyQueryString
Get the string for this query.
Top
Methods
  NameDescription
Public methodCompile
Compile the given query -- NOT IMPLEMENTED.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Executes the OQL Query on the cache server and returns the results. The default timeout for the query is 15 secs.
Public methodExecute(UInt32)
Executes the OQL Query on the cache server with the specified timeout and returns the results.
Public methodExecute(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.
Public methodExecute(IGFSerializable, UInt32)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
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