virtual qBool ChangeMeta( ProtocolCallContext * pContext, const qVector< DataStoreChangeMetaParam > & params, const qBool transactional = true, qVector< qResult > * pResults = NULL );
Name | Description | |
---|---|---|
in | pContext | Call information. |
in | params | Detailed information. |
in | transactional | Whether to process only if all will succeed (true ), or to process as much as possible. The process is canceled for data for which the process will fail (false ). |
out | pResults | Whether successful or not. (Can be omitted.) |
Value | Description |
---|---|
true |
RMC call initialization succeeded. |
false |
Failure. |
Performs a batch-change to metadata in storage.
DataStoreChangeMetaParam
can be specified separately. Up to 100 sets of metadata can be batch-processed. The specified number of processing results on the data IDs specified in params
are returned to pResult
in the same order in which they were specified. Only data that has update permission can be updated. ChangeMeta
cannot be used on POST data with a specified data ID.
Set DataStoreChangeMetaCompareParam
in DataStoreChangeMetaParam
to change the metadata by comparing and swapping. If the set value and the actual value are not the same, no change is made and the CallContext::GetOutcome
function returns QERROR(DataStore, ValueNotEqual)
.
CONFIDENTIAL