CTBase::SetTransactionMode
Declaration
void CTBase::SetTransactionMode(CTBEGIN_MODE mode)
Description
c-tree Plus offers a rich array of data integrity options. Full transaction processing offers the safest and best performance of all the available options. There are times when other c-tree Plus options, such as PREIMG, might be advantageous.
Sets the transaction mode used when starting a transaction.
CTBEGIN_MODE Symbolic Constant |
Description |
CTBEGIN_NONE |
No begin transaction mode set. Default mode apply. |
CTBEGIN_PREIMG |
Transaction atomicity only. Auto-recovery is not available. Mutually exclusive with CTBEGIN_TRNLOG. |
CTBEGIN_TRNLOG |
Full transaction processing functionality including auto-recovery. Mutually exclusive to CTBEGIN_PREIMG. This is the default begin transaction mode. |
CTBEGIN_DEFER |
Defer begin transaction until update. |
CTBEGIN_AUTOSAVE |
Automatically invokes savepoints after each successful record or resource update. |
This mode will be OR-ed in to form the transaction mode used when a c-tree transaction is started. If the transaction mode is CTBEGIN_NONE, the ctTRNLOG mode is used to start a new transaction.
Return Values
None.
See Also
CTBase::GetTransactionMode()