TIBCO ActiveSpaces®
|
A batchresult object encapsulates the results of a single batch of operations. returned by tibdgSession_GetRows , tibdgSession_PutRows , and tibdgSession_DeleteRows. More...
Functions | |
TIBDG_API tibbool_t | tibdgBatchResult_AllSucceeded (tibEx e, tibdgBatchResult batchResult) |
Find whether or not every operation in the batch succeeded. More... | |
TIBDG_API void | tibdgBatchResult_Destroy (tibEx e, tibdgBatchResult batchResult) |
Destroy the Batch Result. More... | |
TIBDG_API tibdgRow | tibdgBatchResult_GetRow (tibEx e, tibdgBatchResult batchResult, tibint32_t index) |
Get Row associated with the Batch Result. More... | |
TIBDG_API tibint32_t | tibdgBatchResult_GetSize (tibEx e, tibdgBatchResult batchResult) |
Get number of results of a batched operation. More... | |
A batchresult object encapsulates the results of a single batch of operations. returned by tibdgSession_GetRows , tibdgSession_PutRows , and tibdgSession_DeleteRows.
TIBDG_API tibbool_t tibdgBatchResult_AllSucceeded | ( | tibEx | e, |
tibdgBatchResult | batchResult | ||
) |
Find whether or not every operation in the batch succeeded.
In a batch of GET operations, if this function returns true, tibdgBatchResult_GetRow may be called to retrieve the result rows
e | The exception object captures information about failures. |
batchResult | The batch result object from the batched operation |
TIBDG_API void tibdgBatchResult_Destroy | ( | tibEx | e, |
tibdgBatchResult | batchResult | ||
) |
Destroy the Batch Result.
e | The exception object captures information about failures. |
batchResult | The batch result object to destroy |
TIBDG_API tibdgRow tibdgBatchResult_GetRow | ( | tibEx | e, |
tibdgBatchResult | batchResult, | ||
tibint32_t | index | ||
) |
Get Row associated with the Batch Result.
Note: only valid for GET batches. You must call AllSucceeded() to verify that all the operations in the batch completed successfully.
The row returned is owned by the BatchResult object, and must be copied using tibdgRow_Copy to modify or use after the batch is destroyed.
e | The exception object captures information about failures. |
batchResult | The batch result object from the batched operation |
index | The index of the row to retrieve |
NULL
. TIBDG_API tibint32_t tibdgBatchResult_GetSize | ( | tibEx | e, |
tibdgBatchResult | batchResult | ||
) |
Get number of results of a batched operation.
Note: For fully successful batches, this should be the size of the input row array
e | The exception object captures information about failures. |
batchResult | The batch result object from the batched operation |