tibasSpace_CompareAndPutAll()

Compares the values in a list of old values with the existing values in the space. If the old values are unmodified, replaces the existing tuples with the specified new values.

Declaration

tibas_status tibasSpace_CompareAndPutAll(
    tibasSpace            space,
    tibasSpaceResultList* resultList,
    tibasTupleList        oldValueList,
    tibasTupleList        newValueList)

Parameters

Parameter Description
space The TIBCO ActiveSpaces entity on which the function is invoked.
resultList A list of the values in the space.
oldValueList A list of old values.
newValueList A list of new values to compare with the values in the list.

Remarks

Use the tibasSpace_CompareAndPutAll() function to compare values that you specify in a list of new values with the existing values for the tuples in the data store, and, if the new values do not match an existing values, replace the old values with the new values.