GitHub
Download
Forum
Overview
Tutorial
C++ API
General interfaces
Data interfaces
UDomain
UStorage
UObject
UList
UBitFlagSet
UBitFlagSetSingle
WDomain
Domain_Create
Domain_Destroy
AbortTransaction
Connect
Create
CreateTransaction
CreateWaitObject
DestroyTransaction
DestroyWaitObject
Disconnect
DisconnectAll
Execute
ExecuteAsync
ExecuteResult
ExecuteWait
GetConnection
GetDomain
GetLastError
GetSchema
GetStorage
Initialize
InsertNamedObject
IsConnected
LoadData
Open
OpenNamedObject
Query
QueryNamedObject
QueryNamedObjectId
QueryNamedObjectLink
QueryNamedObjectMultiple
QueryStorage
ReleaseAllStorages
ReleaseStorage
RemoveNamedObject
ResetTransaction
StoreData
Uninitialize
WaitableHandle
WObject
IEventClient
Schema interfaces
Configuration interfaces
Structures
Error codes
C# API
DTDL
DADL
Setup
WDomain::Execute
Executes all pending actions of a transaction atomically. If one action fails, no action will modify data.
Syntax
HRESULT
Execute(
[in]
HANDLE
p_hTransaction
);
Parameter
p_hTransaction
[in]
Type:
HANDLE
Transaction to execute.
Can be one of the standard transactions Transaction::Store or Transaction::Load.
Return value
S_OK or an error from the
Error Codes
.
Remarks
The function only returns when all actions are executed on the server. In case of a failure, you can get detailed information about the errors by calling
WDomain::GetLastError
on the objects that are part of the transaction. In case of a write error, only the first error will be reported (because the execution will end after the first error). In case of a read error, the errors for all objects are reported (because the execution continues even if loading on one object fails).
© 2022 Mobiland AG