nn::nex::DataStoreClient::ChangeMeta Member Function

Syntax

virtual qBool ChangeMeta(
     ProtocolCallContext * pContext,
     const qVector< DataStoreChangeMetaParam > & params,
     const qBool transactional = true,
     qVector< qResult > * pResults = NULL
);

Parameters

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

Return Values



Value Description
true RMC call initialization succeeded.
false Failure.

Description

Performs a batch-change to metadata in storage.

DataStoreChangeMetaParam can be specified separately. Up to 100 sets of metadata can be batch-processed. The result of processing each data ID specified in params is returned to pResult in the same order in which it was specified. pResult takes only that specified number of results. 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).

Revision History

2012/10/23
Added that only a person who has update rights can update.
2011/01/27
Initial version.

CONFIDENTIAL