virtual qBool ChangeMeta( ProtocolCallContext * pContext, const DataStoreChangeMetaParam & param ); virtual qBool ChangeMeta( ProtocolCallContext * pContext, const qVector< qUnsignedInt64 > & dataIds, const DataStoreChangeMetaParam & param, const qBool transactional = true, qVector< qResult > * pResults = NULL ); virtual qBool ChangeMeta( ProtocolCallContext * pContext, const qVector< DataStoreChangeMetaParam > & params, const qBool transactional = true, qVector< qResult > * pResults = NULL );
ChangeMeta ( ProtocolCallContext *, const DataStoreChangeMetaParam & )
|
Changes metadata in storage. |
ChangeMeta ( ProtocolCallContext *, const qVector< qUnsignedInt64 > &, const DataStoreChangeMetaParam &, const qBool, qVector< qResult > * )
|
Performs a batch-change to metadata in storage. |
ChangeMeta ( ProtocolCallContext *, const qVector< DataStoreChangeMetaParam > &, const qBool, qVector< qResult > * )
|
Performs a batch-change to metadata in storage. |
Only data that has update permission can be updated.
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)
. ChangeMeta
cannot be used on POST data with a specified data ID.
The function updates the metadata for the data specified with dataIds, using the conditions configured in param. Information set using the DataStoreChangeMetaParamSetDataId
function is ignored. Up to 100 sets of metadata can be batch-processed. The result of processing each data ID specified in dataIds
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)
.
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)
.
CONFIDENTIAL