C-DEngine 5.105

TheStorageMirror<(Of <(<'T>)>)>..::..GetGroupResult Method

Retrieves groups of records from the StorageMirror's underlying MirrorCache or IStorageService and hands it to the callback. If IsRAMStore or IsCached, the groups will be retrieved from the MirrorCache. If IsRAMStore is false, the groups will be retrieved from the IStorageService.

Namespace:  nsCDEngine.Engines.StorageService
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void GetGroupResult(
	string pColumFilter,
	string pGrouping,
	Action<TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse> CallBack,
	bool LocalCallBackOnly,
	Object pCookie
)
Public Sub GetGroupResult ( _
	pColumFilter As String, _
	pGrouping As String, _
	CallBack As Action(Of TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse), _
	LocalCallBackOnly As Boolean, _
	pCookie As Object _
)
public:
void GetGroupResult(
	String^ pColumFilter, 
	String^ pGrouping, 
	Action<TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse^>^ CallBack, 
	bool^ LocalCallBackOnly, 
	Object^ pCookie
)

Parameters

pColumFilter
Type: String
The "SELECT" clause to specify which columns (properties) will be contained in the records returned. Note that this is only used for retrieval from the IStorageService and not the MirrorCache. Generally the string should consist of the form [PropertyName1], [PropertyName2], ... e.g. EngineName, DeviceType, ...etc. If pGrouping is specified, this should typically contain an aggregate function and only columns also in the pGrouping.
pGrouping
Type: String
The "GROUP BY" clause to specify how to group the records. Note that for retrieval from the MirrorCache, this should only contain one property name. Otherwise, the string should generally consist of the form [PropertyName1], [PropertyName2], ... e.g. EngineName, DeviceType, ... etc.
CallBack
Type: Action<(Of <(<'TheStorageMirror<(Of <(<'T>)>)>..::..StoreResponse>)>)>
The callback method that will be invoked upon error or completed retrieval of records.
LocalCallBackOnly
Type: Boolean
If set to true, no request is sent to a remote StorageService.
pCookie
Type: Object
A cookie that will later be returned with the StoreResponse in the callback.