GemStone::GemFire::Cache::Generic::ResultSet< TResult > Class Template Reference

Inherits GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::ResultSet >, and GemStone::GemFire::Cache::Generic::ISelectResults< TResult >< TResult >.


Detailed Description

template<class TResult>
class GemStone::GemFire::Cache::Generic::ResultSet< TResult >

Encapsulates a query result set. It specifies the interface for the resultset obtained from the Gemfire cache server

Public Member Functions

virtual
System::Collections::Generic::IEnumerator
< TResult >^ 
GetEnumerator ()
virtual
SelectResultsIterator
< TResult >^ 
GetIterator ()

Protected Member Functions

void _SetNativePtr (gemfire::ResultSet *nativeptr)
void AssignPtr (gemfire::ResultSet *nativeptr)
void InternalCleanup ()
void SetPtr (gemfire::ResultSet *nativeptr)

Properties

virtual bool IsModifiable [get]
virtual TResult Item [get]
virtual int32_t Size [get]

Member Function Documentation

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::ResultSet >::_SetNativePtr ( gemfire::ResultSet *  nativeptr  )  [inline, protected, inherited]

Set the native pointer to the new object without doing a preserveSB(). DO NOT USE UNLESS YOU KNOW WHAT YOU ARE DOING.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::ResultSet >::AssignPtr ( gemfire::ResultSet *  nativeptr  )  [inline, protected, inherited]

Used to assign the native pointer to a new object.

Note the order of preserveSB() and releaseSB(). This handles the corner case when m_nativeptr is same as nativeptr.

template<class TResult>
virtual System::Collections::Generic::IEnumerator<TResult> ^ GemStone::GemFire::Cache::Generic::ResultSet< TResult >::GetEnumerator (  )  [virtual]

Returns an enumerator that iterates through the collection.

Returns:
A System.Collections.Generic.IEnumerator that can be used to iterate through the ResultSet.

template<class TResult>
virtual SelectResultsIterator<TResult> ^ GemStone::GemFire::Cache::Generic::ResultSet< TResult >::GetIterator (  )  [virtual]

Get an iterator for the result set.

Implements GemStone::GemFire::Cache::Generic::ISelectResults< TResult >.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::ResultSet >::InternalCleanup (  )  [inline, protected, inherited]

Internal cleanup function invoked by dispose/finalizer.

void GemStone::GemFire::Cache::Generic::Internal::SBWrap< gemfire::ResultSet >::SetPtr ( gemfire::ResultSet *  nativeptr  )  [inline, protected, inherited]

Used to set the native pointer to a new object. This should only be used when you know that the underlying object is NULL.


Property Documentation

template<class TResult>
virtual bool GemStone::GemFire::Cache::Generic::ResultSet< TResult >::IsModifiable [get]

True if this ResultSet is modifiable.

Implements GemStone::GemFire::Cache::Generic::ISelectResults< TResult >.

template<class TResult>
virtual TResult GemStone::GemFire::Cache::Generic::ResultSet< TResult >::Item [get]

Get an object at the given index.

Implements GemStone::GemFire::Cache::Generic::ISelectResults< TResult >.

template<class TResult>
virtual int32_t GemStone::GemFire::Cache::Generic::ResultSet< TResult >::Size [get]

The size of the ResultSet.

Implements GemStone::GemFire::Cache::Generic::ISelectResults< TResult >.


GemFire C++ Cache .NET API Documentation