Click or drag to resize
QueryTResult Class
Class to encapsulate a query.
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Generic.Internal.SBWrap<gemfire::Query>]
    GemStone.GemFire.Cache.GenericQueryTResult

Namespace: GemStone.GemFire.Cache.Generic
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
public sealed class Query<TResult> : [T:GemStone.GemFire.Cache.Generic.Internal.SBWrap<gemfire::Query>]

Type Parameters

TResult

The QueryTResult 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(Object)
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(UInt32)
Executes the OQL Query on the cache server with the specified timeout and returns the results.
Public methodExecute(Object, 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