client-cpp  0.10.0
kaa::AbstractTransactable< Container > Class Template Reference

#include <AbstractTransactable.hpp>

+ Inheritance diagram for kaa::AbstractTransactable< Container >:
+ Collaboration diagram for kaa::AbstractTransactable< Container >:

Public Member Functions

virtual TransactionIdPtr beginTransaction (IKaaClientContext &context_)
 
virtual void rollback (TransactionIdPtr trxId, IKaaClientContext &context_)
 
Container & getContainerByTrxId (TransactionIdPtr trxId, IKaaClientContext &context_)
 
virtual ~AbstractTransactable ()
 
- Public Member Functions inherited from kaa::ITransactable
virtual void commit (TransactionIdPtr trxId, IKaaClientContext &context_)=0
 
virtual ~ITransactable ()
 

Protected Member Functions

 KAA_MUTEX_DECLARE (transactionsGuard_)
 

Protected Attributes

std::map< TransactionIdPtr,
Container > 
transactions_
 

Detailed Description

template<class Container>
class kaa::AbstractTransactable< Container >

Definition at line 28 of file AbstractTransactable.hpp.

Constructor & Destructor Documentation

template<class Container>
virtual kaa::AbstractTransactable< Container >::~AbstractTransactable ( )
inlinevirtual

Definition at line 67 of file AbstractTransactable.hpp.

Member Function Documentation

template<class Container>
virtual TransactionIdPtr kaa::AbstractTransactable< Container >::beginTransaction ( IKaaClientContext context_)
inlinevirtual

Create new transaction.

Returns
TransactionId object which must be used to submit or rollback the transaction.
Parameters
[in]Kaaclient context

Implements kaa::ITransactable.

Definition at line 30 of file AbstractTransactable.hpp.

template<class Container>
Container& kaa::AbstractTransactable< Container >::getContainerByTrxId ( TransactionIdPtr  trxId,
IKaaClientContext context_ 
)
inline

Definition at line 52 of file AbstractTransactable.hpp.

template<class Container>
kaa::AbstractTransactable< Container >::KAA_MUTEX_DECLARE ( transactionsGuard_  )
protected
template<class Container>
virtual void kaa::AbstractTransactable< Container >::rollback ( TransactionIdPtr  trxId,
IKaaClientContext context_ 
)
inlinevirtual

Rollback changes for given transaction.

Parameters
trxIdIdentifier of the transaction which must be removed withot applying changes.
[in]Kaaclient context

Implements kaa::ITransactable.

Definition at line 41 of file AbstractTransactable.hpp.

Member Data Documentation

template<class Container>
std::map<TransactionIdPtr, Container> kaa::AbstractTransactable< Container >::transactions_
protected

Definition at line 69 of file AbstractTransactable.hpp.


The documentation for this class was generated from the following file: