In file /home/eternity/Source/Common/TransactionManager/H/transactionManager.h:

class TransactionManager : public Debugable

Transaction manager class

Inheritance:

TransactionManager < Debugable


Public Methods

Err TransactionManager::BeginTransaction (TID *tid)
Kratky_komentar_s_teckou_na_konci
Err TransactionManager::EndTransaction (TID tid)
Kratky_komentar_s_teckou_na_konci
TID TransactionManager::GenerateTID ()
Kratky_komentar_s_teckou_na_konci
Err TransactionManager::RegisterRollbackable (Rollbackable *rbObject)
Kratky_komentar_s_teckou_na_konci
Err TransactionManager::Rollback (TID tid)
Kratky_komentar_s_teckou_na_konci
TransactionManager::TransactionManager (Char *transLogName, LogFile *aLogFile)
Kratky_komentar_s_teckou_na_konci
Err TransactionManager::WriteToLog (TID tid, TransactionState state)
Kratky_komentar_s_teckou_na_konci
TransactionManager::~TransactionManager ()
Kratky_komentar_s_teckou_na_konci

Public

methods
CheckTransactionLog ()
goes through the transaction log and rolls back all not commited transactions
Rollback (TID tid)
calls Rollback(tid) for all rollbackable objects
Err RegisterRollbackable (Rollbackable *rbObject)
registers an rollbackable object
Err BeginTransaction (TID *tid)
returns new TID and writes to Transaction Log
Err EndTransaction (TID tid)
writes to Transaction Log

Protected

attributes
methods
TID GenerateTID ()
generates new transaction ID
Err WriteToLog (TID tid, TransactionState state)
writes to transactionLog - must be open
Err ReadFromLog (TID *tid, TransactionState *state)
reads from transactionLog - must be open

Inherited from Debugable:

Public Methods

string* Debugable::CreateString(char *firstStr, int firstInt, int secondInt)
Debugable::Debugable(LogFile * debugLogFile)
int Debugable::SetDebugOptions(int newLogOptions)
void Debugable::SetLogFile(LogFile *aLogFile)
void Debugable::WriteString(LogLevel debugLevel, char * format, ...)
Debugable::~Debugable()

Documentation

Transaction manager class. makes a log of transactions and enables some classes to be able to Roll back.
attributes

methods

TID GenerateTID()
generates new transaction ID

Err WriteToLog(TID tid, TransactionState state)
writes to transactionLog - must be open

Err ReadFromLog(TID *tid, TransactionState *state)
reads from transactionLog - must be open

methods

CheckTransactionLog()
goes through the transaction log and rolls back all not commited transactions

Rollback(TID tid)
calls Rollback(tid) for all rollbackable objects

Err RegisterRollbackable(Rollbackable *rbObject)
registers an rollbackable object

Err BeginTransaction(TID *tid)
returns new TID and writes to Transaction Log

Err EndTransaction(TID tid)
writes to Transaction Log

Err TransactionManager::BeginTransaction(TID *tid)
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err TransactionManager::EndTransaction(TID tid)
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

TID TransactionManager::GenerateTID()
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err TransactionManager::RegisterRollbackable(Rollbackable *rbObject)
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err TransactionManager::Rollback(TID tid)
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

TransactionManager::TransactionManager(Char *transLogName, LogFile *aLogFile)
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err TransactionManager::WriteToLog(TID tid, TransactionState state)
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

TransactionManager::~TransactionManager()
Kratky_komentar_s_teckou_na_konci. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka


This class has no child classes.
Author:
Pavel
See Also:
Rollbackable

alphabetic index hierarchy of classes


generated by doc++