GlobalObjects
|
Objects of this class reflect a record operation. More...
#include <GloTransactionManager.h>
Public Member Functions | |
TransactionStep (EnStoreDelete eAction, Record *pActionRecord, bool bLocalCopy=false) | |
virtual | ~TransactionStep () |
TransactionManager::EnStoreDelete | getAction () const |
const Record * | getActionRecord () const |
void | getActionRecord (Record *&prRetVal) const |
ObjID | getActionRecordObjID () const |
bool | hasLocalCopy () |
int | takeOverObjIDsFilePos (const Record &rSourceRecord) |
Public Member Functions inherited from glo::TransactionManager::TransactionBase | |
TransactionBase () | |
virtual | ~TransactionBase () |
Protected Member Functions | |
TransactionStep () | |
Private Member Functions | |
TransactionStep (const TransactionStep &) | |
TransactionManager::TransactionStep & | operator= (const TransactionStep &) |
Private Attributes | |
bool | m_bLocalCopyRecord |
TransactionManager::EnStoreDelete | m_eAction |
Record * | m_pActionRecord |
Objects of this class reflect a record operation.
|
protected |
The standard constructor is not available.
glo::TransactionManager::TransactionStep::TransactionStep | ( | EnStoreDelete | eAction, |
Record * | pActionRecord, | ||
bool | bLocalCopy = false ) |
Constructor with parameter passing.
[in] | eAction | The action how to handle the data set; save or delete. |
[in] | pActionRecord | The record to be saved or deleted. The record is copied and not 'remembert'. If in a server, the records are different anyway, if not, a deep copy is made, then set parameter bDeepCopy == true. The pActionRecord is needed for real save/delete and as return for the reader of the transaction owner. |
[in] | bLocalCopy | If true, a local copy of the record is created. |
eut::ErrorNException | An exception is thrown if an error occurs. |
|
private |
The copy constructor is not available.
|
virtual |
Destructor.
TransactionManager::EnStoreDelete glo::TransactionManager::TransactionStep::getAction | ( | ) | const |
Returns the action how to handle the record; save or delete.
const Record * glo::TransactionManager::TransactionStep::getActionRecord | ( | ) | const |
Returns a pointer to the record to be saved or deleted.
void glo::TransactionManager::TransactionStep::getActionRecord | ( | Record *& | prRetVal | ) | const |
Returns the record to be saved or deleted.
[in,out] | prRetVal | The record to be saved or deleted. |
ObjID glo::TransactionManager::TransactionStep::getActionRecordObjID | ( | ) | const |
Returns the object ID of the data set to be saved or deleted.
bool glo::TransactionManager::TransactionStep::hasLocalCopy | ( | ) |
Checks if a locally copied record exists.
|
private |
The assignment operator is not available.
int glo::TransactionManager::TransactionStep::takeOverObjIDsFilePos | ( | const Record & | rSourceRecord | ) |
If the object IDs of the data set to be saved or deleted and the transferred data set match, the file positions of the object ID attributes of the transferred data set are transferred to the data set to be saved or deleted and to the locally copied data set.
[in] | rSourceRecord | The data set from which the file positions in the table of attributes are to be transferred. |
|
private |
If the database is opened in local mode, a copy of the record must be created, because values of the record may only be set when realy saving.
|
private |
The action how to handle the record; save or delete.
|
private |
The record to be saved or deleted.