Represents the client side of a Bridge transaction. More...
Public Member Functions | |
virtual Sint32 | execute (IClient_job *job)=0 |
Schedules the provided job for execution on the server and returns immediately. More... |
|
virtual Sint32 | commit (IClient_transaction_callback *callback=0)=0 |
Commits the Bridge transaction. More... |
|
virtual Sint32 | abort (IClient_transaction_callback *callback=0)=0 |
Aborts the Bridge transaction. More... |
|
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0x5820ed8e, 0xe2c6, 0x4a35, 0xa1, 0xd4, 0xc4, 0x82, 0x87, 0x16, 0xe0, 0x36 > | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, IInterface > |
Self |
Own type. More... |
|
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > |
IID |
Declares the interface ID (IID) of this interface. More... |
|
Static Public Member Functions inherited from mi::base::Interface_declare< 0x5820ed8e, 0xe2c6, 0x4a35, 0xa1, 0xd4, 0xc4, 0x82, 0x87, 0x16, 0xe0, 0x36 > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... |
|
Represents the client side of a Bridge transaction.
All data synchronization and job execution on the server requires a pair of client-side and server-side Bridge transactions. The lifetime of the server-side transaction is bound to the lifetime client-side transaction.
|
pure virtual |
Aborts the Bridge transaction.
Both, the client-side and server-side Bridge transaction will be aborted.
callback | If the optional callback object is provided, then the call is asynchronous and the callback will be invoked when the abort is finished. Otherwise, the call is synchronous. |
|
pure virtual |
Commits the Bridge transaction.
Both, the client-side and server-side Bridge transaction will be committed after all jobs executed on this transaction have been finished.
callback | If the optional callback object is provided, then the call is asynchronous and the callback will be invoked when the commit is finished. Otherwise, the call is synchronous. |
|
pure virtual |
Schedules the provided job for execution on the server and returns immediately.
Jobs are executed asynchronously, but sequentially (per transaction) on the server in the same order as execution is requested by this method. A job is only executed after its referenced database elements have been updated from the Bridge client to the Bridge server.
job | The job to execute. |
job
is NULL
).