![]() |
OCILIB (C and C++ Driver for Oracle)
4.7.6
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
Oracle Transaction object. More...
#include <types.hpp>
Public Types | |
| enum | TransactionFlagsValues { } |
| Transaction flags enumerated values. More... | |
| typedef core::Flags< TransactionFlagsValues > | TransactionFlags |
| Transaction flags. More... | |
Public Member Functions | |
| Transaction (const Connection &connection, unsigned int timeout, TransactionFlags flags, OCI_XID *pxid=nullptr) | |
| Create a new global transaction or a serializable/read-only local transaction. More... | |
| void | Prepare () |
| Prepare a global transaction validation. | |
| void | Start () |
| Start global transaction. | |
| void | Stop () |
| Stop current global transaction. | |
| void | Resume () |
| Resume a stopped global transaction. | |
| void | Forget () |
| Cancel the prepared global transaction validation. | |
| TransactionFlags | GetFlags () const |
| Return the transaction mode. More... | |
| unsigned int | GetTimeout () const |
| Return the transaction Timeout. | |
Oracle Transaction object.
This class wraps the OCILIB object handle OCI_Transaction and its related methods
Transaction flags.
Possible values are Transaction::TransactionFlagsValues
Transaction flags enumerated values.
|
inline |
Create a new global transaction or a serializable/read-only local transaction.
| connection | - Connection |
| timeout | - Time that a transaction stays inactive after being stopped |
| flags | - Transaction flags |
| pxid | - pointer to a global transaction identifier structure |
Definition at line 30 of file Transaction.hpp.
References ocilib::core::Check(), and OCI_TransactionCreate().
|
inline |
Return the transaction mode.
Definition at line 69 of file Transaction.hpp.
References ocilib::core::Check(), and OCI_TransactionGetMode().