TIBCO ActiveSpaces®
Functions
batchresult.h File Reference

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...
 

Function Documentation

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

Parameters
eThe exception object captures information about failures.
batchResultThe batch result object from the batched operation
Returns
bool
TIBDG_API void tibdgBatchResult_Destroy ( tibEx  e,
tibdgBatchResult  batchResult 
)

Destroy the Batch Result.

Parameters
eThe exception object captures information about failures.
batchResultThe batch result object to destroy
Returns
void
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.

Parameters
eThe exception object captures information about failures.
batchResultThe batch result object from the batched operation
indexThe index of the row to retrieve
Returns
On success, this call returns the row corresponding to the ith key in the batch, which can be NULL if there is no row with that key.
On failure, this call returns 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

Parameters
eThe exception object captures information about failures.
batchResultThe batch result object from the batched operation
Returns
number of successful results